-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: Fix permission on data volumes
- Loading branch information
Fabien Bochu
committed
Dec 16, 2016
1 parent
501a0b7
commit 4045704
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |