Skip to content

Instantly share code, notes, and snippets.

@CrimsonScythe
Last active August 19, 2022 19:39
Show Gist options
  • Save CrimsonScythe/59033d75320eb0205fe61e90f4e54381 to your computer and use it in GitHub Desktop.
Save CrimsonScythe/59033d75320eb0205fe61e90f4e54381 to your computer and use it in GitHub Desktop.
# Dockerfile
# pull the official docker image
FROM python:3.9
# set work directory
WORKDIR /app
# install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# copy project
COPY . .
# Run fastapi
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment