Skip to content

Commit 4a9ba26

Browse files
authored
latest version of python has been updated...
1 parent 0bf1c43 commit 4a9ba26

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
FROM python:3.10
1+
# Use the official Python image
2+
FROM python:3.9-slim-buster
3+
4+
# Set the working directory in the container
25
WORKDIR /app
3-
COPY . /app/
4-
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
517
CMD ["python", "bot.py"]

0 commit comments

Comments
 (0)