Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
FROM python:3.9-slim-buster
|
| 2 |
|
| 3 |
-
WORKDIR /
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
|
| 7 |
# Install any needed packages specified in requirements.txt
|
| 8 |
RUN python -m pip install --no-cache-dir --upgrade pip
|
| 9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
# Copy the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
CMD ["python", "app.py"]
|
| 15 |
|
| 16 |
RUN mkdir /.cache
|
| 17 |
RUN chmod 777 /.cache
|
|
|
|
| 1 |
FROM python:3.9-slim-buster
|
| 2 |
|
| 3 |
+
WORKDIR /code
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
|
| 7 |
# Install any needed packages specified in requirements.txt
|
| 8 |
RUN python -m pip install --no-cache-dir --upgrade pip
|
| 9 |
+
RUN pip install --no-cache-dir -r /code/requirements.txt
|
| 10 |
|
| 11 |
# Copy the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
CMD ["python", "/code/app.py"]
|
| 15 |
|
| 16 |
RUN mkdir /.cache
|
| 17 |
RUN chmod 777 /.cache
|