Last active
August 19, 2022 19:39
-
-
Save CrimsonScythe/59033d75320eb0205fe61e90f4e54381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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