Skip to content

Commit

Permalink
Dockerfile: Fix permission on data volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Bochu committed Dec 16, 2016
1 parent 501a0b7 commit 4045704
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM alpine
MAINTAINER Polyconseil <opensource+dokang@polyconseil.fr>

ENV PYTHONPATH=/home/dokang
VOLUME ['/home/dokang/data']
EXPOSE 6543

RUN apk add --no-cache --update python3
RUN adduser -u 998 -D dokang

COPY ./files /home/dokang/
RUN mkdir /home/dokang/data
RUN chown -R dokang:dokang /home/dokang

RUN apk add --no-cache --update python3
VOLUME ['/home/dokang/data']

USER dokang
WORKDIR /home/dokang

RUN python3 -m venv venv && \
venv/bin/pip install dokang dokang_pdf waitress

ENV PYTHONPATH=/home/dokang
ENTRYPOINT ["/home/dokang/venv/bin/python3", "entrypoint.py"]

0 comments on commit 4045704

Please sign in to comment.