Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
0d5c0fbd
Verified
Commit
0d5c0fbd
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[Docker] Honour storage locations and declare volumes correctly
Advances
#403
parent
bdcb1036
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!544
Resolve "[Docker] Do not run as root"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+11
-6
11 additions, 6 deletions
Dockerfile
with
11 additions
and
6 deletions
Dockerfile
+
11
−
6
View file @
0d5c0fbd
...
...
@@ -47,12 +47,11 @@ RUN case ",$EXTRAS," in \
# Install core
RUN
set
-e
;
\
mkdir
-p
/var/lib/aleksis/media /usr/share/aleksis/static /var/lib/aleksis/backups
;
\
mkdir
-p
${
ALEKSIS_static__root
}
\
${
ALEKSIS_media__root
}
\
${
ALEKSIS_backup__location
}
;
\
eatmydata pip
install
AlekSIS-Core
\[
$EXTRAS
\]
$APP_VERSION
# Declare a persistent volume for all data
VOLUME
/var/lib/aleksis
# Define entrypoint and uWSGI running on port 8000
EXPOSE
8000
COPY
docker-startup.sh /usr/local/bin/aleksis-docker-startup
...
...
@@ -85,6 +84,12 @@ RUN set -e; \
FROM
clean
AS
unprivileged
WORKDIR
/var/lib/aleksis
RUN
chown
-R
www-data:www-data
\
/var/lib/aleksis
\
/usr/share/aleksis/static
${
ALEKSIS_static__root
}
\
${
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}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment