Update
This commit is contained in:
parent
0c80b25d68
commit
116ba791dc
|
@ -25,6 +25,7 @@ WORKDIR /app
|
|||
# Copy requirements from build stage, and install them
|
||||
COPY --from=build /app/requirements.txt .
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --no-cache-dir "fastapi[standard]"
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
@ -36,4 +37,6 @@ USER appuser
|
|||
# Run server
|
||||
EXPOSE 8001
|
||||
# CMD ["gunicorn", "--bind", "0.0.0.0:8001", "main_package.app:app"]
|
||||
CMD ["uvicorn", "main_package.app:app", "--reload", "--host", "0.0.0.0", "--port", "8001", "--proxy-headers"]
|
||||
# CMD ["uvicorn", "main_package.app:app", "--reload", "--host", "0.0.0.0", "--port", "8001", "--proxy-headers"]
|
||||
CMD ["fastapi", "run", "main_package/app.py", "--reload", "--port", "8001", "--proxy-headers"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue