Skip to content
Snippets Groups Projects
Verified Commit 86a9b0e8 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Docker] Do not declare static root as volume

Advances #403
parent 0d5c0fbd
No related branches found
No related tags found
1 merge request!544Resolve "[Docker] Do not run as root"
......@@ -52,8 +52,9 @@ RUN set -e; \
${ALEKSIS_backup__location}; \
eatmydata pip install AlekSIS-Core\[$EXTRAS\]$APP_VERSION
# Define entrypoint and uWSGI running on port 8000
# Define entrypoint, volumes and uWSGI running on port 8000
EXPOSE 8000
VOLUME ${ALEKSIS_media__root} ${ALEKSIS_backup__location}
COPY docker-startup.sh /usr/local/bin/aleksis-docker-startup
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/usr/local/bin/aleksis-docker-startup"]
......@@ -88,8 +89,3 @@ RUN chown -R www-data:www-data \
${ALEKSIS_media__root} \
${ALEKSIS_backup__location}
USER www-data:www-data
# Declare persistent volumes for all data
VOLUME ${ALEKSIS_static__root}
VOLUME ${ALEKSIS_media__root}
VOLUME ${ALEKSIS_backup__location}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment