snappass/Dockerfile
Samuel Dion-Girardeau faef96c30c Use python 3.5 in the Docker image
Since tests are running for 3.5, there is no
point in not using the latest & greatest version.
2016-08-11 22:33:17 -04:00

23 lines
444 B
Docker

FROM python:3.5
ENV APP_DIR=/usr/src/snappass
RUN groupadd -r snappass && \
useradd -r -g snappass snappass && \
mkdir -p $APP_DIR
WORKDIR $APP_DIR
COPY ["setup.py", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"]
COPY ["./snappass", "$APP_DIR/snappass"]
RUN python setup.py install && \
chown -R snappass $APP_DIR && \
chgrp -R snappass $APP_DIR
USER snappass
# Default Flask port
EXPOSE 5000
CMD ["snappass"]