Skip to content

Commit 3959871

Browse files
committed
fix bad ordering in Dockerfile
1 parent 8163310 commit 3959871

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

templates/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
FROM python:3.10-slim
22

3-
# Set the working directory in the container to /app
3+
# Create and set the working directory
44
WORKDIR /app
55

6-
# Copy the current directory contents into the container at /app
7-
COPY . .
8-
9-
# Install any needed packages specified in requirements.txt
6+
COPY requirements.txt ./
107
RUN pip install --no-cache-dir -r requirements.txt
118

9+
COPY . .
10+
1211
CMD ["python", "./main.py"]

0 commit comments

Comments
 (0)