d
This commit is contained in:
parent
1dcfe7f742
commit
38b52b450d
@ -2,12 +2,17 @@ FROM python:3.13-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the requirements file
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Install the dependencies
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Copy the application files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Expose port 8000
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
# Run the app using gunicorn
|
||||||
|
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:8000", "app:app"]
|
Loading…
x
Reference in New Issue
Block a user