We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf1c43 commit 4a9ba26Copy full SHA for 4a9ba26
Dockerfile
@@ -1,5 +1,17 @@
1
-FROM python:3.10
+# Use the official Python image
2
+FROM python:3.9-slim-buster
3
+
4
+# Set the working directory in the container
5
WORKDIR /app
-COPY . /app/
-RUN pip install -r requirements.txt
6
7
+# Copy the dependencies file to the working directory
8
+COPY requirements.txt .
9
10
+# Install any needed dependencies specified in requirements.txt
11
+RUN pip install --no-cache-dir -r requirements.txt
12
13
+# Copy the rest of the application code to the working directory
14
+COPY . .
15
16
+# Command to run the application
17
CMD ["python", "bot.py"]
0 commit comments