Created
January 23, 2022 12:11
-
-
Save agusrichard/36d4d500cda11ee2cd08f02a78c03a88 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Base image | |
FROM python:3.9 | |
# Set environment varibles | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
WORKDIR /app | |
COPY requirements.txt /app/requirements.txt | |
RUN pip install -r /app/requirements.txt | |
COPY . /app | |
EXPOSE 80 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment