Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
@@ -6,11 +6,8 @@ WORKDIR /app
|
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
-
# Copy bot
|
| 10 |
-
COPY . .
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
EXPOSE 7860
|
| 14 |
-
|
| 15 |
-
# Run bot
|
| 16 |
CMD ["python", "main.py"]
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
# Copy bot files
|
| 10 |
+
COPY main.py .
|
| 11 |
|
| 12 |
+
# Run the bot
|
|
|
|
|
|
|
|
|
|
| 13 |
CMD ["python", "main.py"]
|