Skip to content

Instantly share code, notes, and snippets.

@c-goosen
Created June 11, 2018 20:33
Show Gist options
  • Save c-goosen/e4e9ae808aa8387c4c68ced2b7c52293 to your computer and use it in GitHub Desktop.
Save c-goosen/e4e9ae808aa8387c4c68ced2b7c52293 to your computer and use it in GitHub Desktop.
Dockerfile for sanic API on alpine Linux
from python:3.6-alpine
COPY ./sanic /sanic
WORKDIR /sanic/
RUN ls
RUN apk add --update --no-cache build-base python3-dev libffi-dev openssl-dev
RUN pip install -r requirements.txt
RUN python sanic.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment