generated from hjess/PythonTemplateProject
First real commit
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 1m5s
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 1m5s
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -13,13 +13,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the rest of the application code
|
||||
COPY . .
|
||||
|
||||
# Expose the port the app runs on (default Flask port)
|
||||
# Expose the port the FastAPI app runs on (default Uvicorn port)
|
||||
EXPOSE 5000
|
||||
|
||||
# Define environment variables
|
||||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_RUN_HOST=0.0.0.0
|
||||
ENV PORT=5000
|
||||
# Command to run the application
|
||||
#CMD ["flask", "run", "--port", "${PORT}"]
|
||||
CMD flask run --port ${PORT}
|
||||
# Command to run the FastAPI application
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000", "--workers", "1"]
|
||||
Reference in New Issue
Block a user