Reviewed changes

Following indications from @TheAssassin.
This commit is contained in:
Ismael Olea 2017-12-08 19:54:56 +01:00 committed by James Mason
parent 8d17acb1a8
commit 4c1a9078fe

View file

@ -38,12 +38,10 @@ RUN chown -R osem.root /osem/ && \
# data directory is used to cache the secret key in a file # data directory is used to cache the secret key in a file
ENV DATA_DIR /data ENV DATA_DIR /data
RUN install -d -m 0770 -o osem -g root $DATA_DIR RUN install -d -m 0770 -o osem -g root $DATA_DIR
VOLUME ["$DATA_DIR"]
# data persistence for uploaded files (logos, other pictures, etc) # data persistence for uploaded files (logos, other pictures, etc)
RUN install -d -m 0755 -o osem -g osem /osem/ /osem/tmp /osem/tmp/uploads/ /osem/public/ /osem/public/system/ RUN mkdir 0775 -p /osem/tmp/cache /osem/tmp/uploads/ && \
VOLUME ["/osem/tmp/uploads/"] chown -R osem.osem /osem/tmp/
VOLUME ["/osem/public/system/"] VOLUME ["$DATA_DIR"] ["/osem/tmp/uploads/"] ["/osem/public/system/"]
USER osem USER osem
EXPOSE 9292 EXPOSE 9292