Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
|
@@ -1,25 +1,18 @@
|
|
| 1 |
-
# Lightweight Python image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
-
# Working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy dependencies first (better caching)
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
# Copy entire bot code
|
| 12 |
COPY bot_with_api.py api.py main.py xC4.py xHeaders.py ./
|
| 13 |
-
COPY Pb2/ ./Pb2/
|
| 14 |
-
# Agar protobuf_decoder local folder hai to usse bhi copy karein:
|
| 15 |
-
# COPY protobuf_decoder/ ./protobuf_decoder/
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
ENV FLASK_APP=api.py
|
| 22 |
ENV FLASK_ENV=production
|
| 23 |
|
| 24 |
-
# Start bot + API
|
| 25 |
CMD ["python", "bot_with_api.py"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
| 8 |
COPY bot_with_api.py api.py main.py xC4.py xHeaders.py ./
|
| 9 |
+
COPY Pb2/ ./Pb2/
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
# Verify files
|
| 12 |
+
RUN ls -la && ls -la Pb2/
|
| 13 |
|
| 14 |
+
EXPOSE 7860
|
| 15 |
ENV FLASK_APP=api.py
|
| 16 |
ENV FLASK_ENV=production
|
| 17 |
|
|
|
|
| 18 |
CMD ["python", "bot_with_api.py"]
|