Update Dockerfile
Browse files- Dockerfile +5 -12
Dockerfile
CHANGED
|
@@ -1,21 +1,14 @@
|
|
| 1 |
# Use a specific version for the base image
|
| 2 |
FROM python:3.8
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
PATH=/home/user/.local/bin:$PATH
|
| 9 |
-
|
| 10 |
-
WORKDIR $HOME/app
|
| 11 |
-
|
| 12 |
-
USER root
|
| 13 |
-
# Install dependencies (pip requests module in this case)
|
| 14 |
RUN pip install requests
|
| 15 |
-
USER user
|
| 16 |
|
| 17 |
-
# Copy application files
|
| 18 |
-
COPY
|
| 19 |
|
| 20 |
# Expose the desired port
|
| 21 |
EXPOSE 8080
|
|
|
|
| 1 |
# Use a specific version for the base image
|
| 2 |
FROM python:3.8
|
| 3 |
|
| 4 |
+
# Set a working directory in the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
RUN pip install requests
|
|
|
|
| 9 |
|
| 10 |
+
# Copy application files to the container at /app
|
| 11 |
+
COPY . /app
|
| 12 |
|
| 13 |
# Expose the desired port
|
| 14 |
EXPOSE 8080
|