generated from hjess/PythonTemplateProject
Lets restore
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 7s
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 7s
This commit is contained in:
@@ -13,8 +13,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
# Copy the rest of the application code
|
# Copy the rest of the application code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose the default port (optional, primarily for documentation purposes)
|
# Expose the port the FastAPI app runs on (default Uvicorn port)
|
||||||
EXPOSE 9210
|
EXPOSE 9210
|
||||||
|
|
||||||
# Command to run the FastAPI application dynamically using the PORT environment variable
|
# Command to run the FastAPI application
|
||||||
CMD ["sh", "-c", "uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port ${PORT:-9210} --workers 1"]
|
CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "9210", "--workers", "1"]
|
||||||
Reference in New Issue
Block a user