Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -23,14 +23,13 @@ COPY --chown=professor:professor . .
|
|
| 23 |
|
| 24 |
# Set environment variables
|
| 25 |
ENV LOG_PATH=/app/BotLog.txt
|
| 26 |
-
ENV
|
| 27 |
-
ENV UVICORN_PORT=8000
|
| 28 |
|
| 29 |
# Ensure the log file is writable
|
| 30 |
RUN touch $LOG_PATH && chmod 666 $LOG_PATH
|
| 31 |
|
| 32 |
-
# Expose port
|
| 33 |
-
EXPOSE
|
| 34 |
|
| 35 |
-
# Start
|
| 36 |
-
CMD ["
|
|
|
|
| 23 |
|
| 24 |
# Set environment variables
|
| 25 |
ENV LOG_PATH=/app/BotLog.txt
|
| 26 |
+
ENV PORT=7860
|
|
|
|
| 27 |
|
| 28 |
# Ensure the log file is writable
|
| 29 |
RUN touch $LOG_PATH && chmod 666 $LOG_PATH
|
| 30 |
|
| 31 |
+
# Expose port
|
| 32 |
+
EXPOSE 7860
|
| 33 |
|
| 34 |
+
# Start Pyrogram bot and FastAPI app
|
| 35 |
+
CMD ["sh", "-c", "python bot.py & uvicorn fastapi_app:app --host 0.0.0.0 --port 7860"]
|