Skip to content

Commit

Permalink
[2023-11-07 12:28] Docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
rflinnenbank committed Nov 7, 2023
1 parent bd230d4 commit 6fc8365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ WORKDIR /
COPY ./weather_provider_api ./weather_provider_api
COPY ./var_maps ./var_maps
COPY ./pyproject.toml ./pyproject.toml
RUN apt-get clean

# *** DEV IMAGE ***
# The purpose of this image is to supply the project as an interpreter / testing ground
Expand All @@ -42,5 +43,7 @@ FROM base-image AS gunicorn-image
WORKDIR /

EXPOSE 8000
RUN apt-get install -y gunicorn
RUN apt-get clean

CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "weather_provider_api.core.application:WPLA_APPLICATION", "--timeout", "180"]

0 comments on commit 6fc8365

Please sign in to comment.