Skip to content

Instantly share code, notes, and snippets.

@Mgancita
Created February 22, 2022 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mgancita/fa276649fb6001c55691e11cc056ba3b to your computer and use it in GitHub Desktop.
Save Mgancita/fa276649fb6001c55691e11cc056ba3b to your computer and use it in GitHub Desktop.
#Docker Build
FROM python:3.8.2
WORKDIR /app
COPY . /app
RUN apt-get update -y \
&& apt-get install -y gcc libpq-dev \
&& pip3 install -r requirements.txt --no-cache-dir
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment