Initial add simple prod ready Dockerfile refs #57 (#94)

This commit is contained in:
Andrew Cutler 2017-11-15 14:08:04 +11:00 committed by Simon Willison
commit 86755503d2

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM python:3.6 as build
ARG VERSION=0.11
RUN pip install datasette==$VERSION
FROM python:3.6-slim
COPY --from=build /usr/local/lib/python3.6/site-packages /usr/local/lib/python3.6/site-packages
COPY --from=build /usr/local/bin /usr/local/bin
EXPOSE 8001
CMD ["datasette"]