Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Last active December 27, 2021 04:31
Show Gist options
  • Save agusrichard/1cbc5baf483444def33990e36ea0cf21 to your computer and use it in GitHub Desktop.
Save agusrichard/1cbc5baf483444def33990e36ea0cf21 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 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