We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8163310 commit 3959871Copy full SHA for 3959871
1 file changed
templates/Dockerfile
@@ -1,12 +1,11 @@
1
FROM python:3.10-slim
2
3
-# Set the working directory in the container to /app
+# Create and set the working directory
4
WORKDIR /app
5
6
-# Copy the current directory contents into the container at /app
7
-COPY . .
8
-
9
-# Install any needed packages specified in requirements.txt
+COPY requirements.txt ./
10
RUN pip install --no-cache-dir -r requirements.txt
11
+COPY . .
+
12
CMD ["python", "./main.py"]
0 commit comments