Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created January 23, 2022 12:11
Show Gist options
  • Save agusrichard/36d4d500cda11ee2cd08f02a78c03a88 to your computer and use it in GitHub Desktop.
Save agusrichard/36d4d500cda11ee2cd08f02a78c03a88 to your computer and use it in GitHub Desktop.
# 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