2017-01-09 01:24:10 +01:00
|
|
|
FROM python:3.6
|
2016-07-16 15:57:18 +02:00
|
|
|
|
|
|
|
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"]
|