Skip to content

Instantly share code, notes, and snippets.

@MaartenGr
Created August 27, 2019 06:50
Show Gist options
  • Save MaartenGr/2630fb305bb7ba7de5ebe1d8829b2cd5 to your computer and use it in GitHub Desktop.
Save MaartenGr/2630fb305bb7ba7de5ebe1d8829b2cd5 to your computer and use it in GitHub Desktop.
FROM tiangolo/uvicorn-gunicorn:python3.6-alpine3.8
# Make directories suited to your application
RUN mkdir -p /home/project/app
WORKDIR /home/project/app
# Copy and install requirements
COPY requirements.txt /home/project/app
RUN pip install --no-cache-dir -r requirements.txt
# Copy contents from your local to your docker container
COPY . /home/project/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment