Last active
December 27, 2021 04:31
-
-
Save agusrichard/1cbc5baf483444def33990e36ea0cf21 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 5000 | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "5000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment