Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
XYZLassi authored Mar 10, 2024
1 parent d970431 commit 021722e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG INSTALL_PYTHON_VERSION=3.10

# ================================= BASE =================================
FROM python:${INSTALL_PYTHON_VERSION}-slim-buster as production
ENV PYTHONUNBUFFERED=1

WORKDIR /app
COPY requirements requirements
RUN pip3 install --upgrade pip
Expand All @@ -11,5 +11,8 @@ RUN pip3 install -r requirements/cli.txt
RUN pip3 install -r requirements/data.txt
RUN pip install --no-cache --user -r requirements/data.txt

ENV PYTHONUNBUFFERED=1

COPY . /app
EXPOSE 8000
EXPOSE 8000
CMD ["/usr/local/bin/uvicorn", "wsgi:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit 021722e

Please sign in to comment.