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
Merge requests
!1068
Fix docker image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix docker image
test-deployment
into
feature/vuejs
Overview
0
Commits
2
Pipelines
6
Changes
2
Merged
Tom Teichler
requested to merge
test-deployment
into
feature/vuejs
2 years ago
Overview
0
Commits
2
Pipelines
6
Changes
2
Expand
0
0
Merge request reports
Compare
feature/vuejs
version 5
99d6fa81
2 years ago
version 4
625bde16
2 years ago
version 3
6de95c6b
2 years ago
version 2
7ba74939
2 years ago
version 1
6b9b66c6
2 years ago
feature/vuejs (base)
and
latest version
latest version
641c981d
2 commits,
2 years ago
version 5
99d6fa81
2 commits,
2 years ago
version 4
625bde16
1 commit,
2 years ago
version 3
6de95c6b
1 commit,
2 years ago
version 2
7ba74939
1 commit,
2 years ago
version 1
6b9b66c6
1 commit,
2 years ago
2 files
+
12
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Dockerfile
+
12
−
6
Options
FROM
debian:b
ullseye
-slim
AS
core
FROM
debian:b
ookworm
-slim
AS
core
# Build arguments
ARG
EXTRAS="ldap,s3,sentry"
ARG
APP_VERSION=""
ARG
APP_VERSION="
==2.10.1.dev0+20220801181456.7ba74939
"
# Configure Python to be nice inside Docker and pip to stfu
ENV
PYTHONUNBUFFERED 1
@@ -67,14 +67,20 @@ RUN set -e; \
EXPOSE
8000
VOLUME
${ALEKSIS_media__root} ${ALEKSIS_backup__location}
COPY
docker-startup.sh /usr/local/bin/aleksis-docker-startup
COPY
package.json /usr/local/lib/python3.10/dist-packages/package.json
COPY
webpack.config.js /usr/local/lib/python3.10/dist-packages/webpack.config.js
COPY
package.json /var/lib/aleksis/
COPY
webpack.config.js /var/lib/aleksis/
ENTRYPOINT
["/usr/bin/dumb-init", "--"]
CMD
["/usr/local/bin/aleksis-docker-startup"]
# Install assets
FROM
core
as
assets
RUN
eatmydata aleksis-admin yarn
install
;
\
WORKDIR
/usr/local/lib/python3.10/dist-packages
RUN
eatmydata yarnpkg
install
;
\
eatmydata aleksis-admin write_webpack_entrypoints
;
\
yarn run webpack
;
\
cp
/usr/local/lib/python3.10/dist-packages/webpack-entrypoints.json /var/lib/aleksis/
;
\
yarnpkg run webpack
;
\
eatmydata aleksis-admin collectstatic
--no-input
;
\
rm
-rf
/usr/local/share/.cache
@@ -120,9 +126,9 @@ ONBUILD RUN set -e; \
if
[
-n
"
$APPS
"
]
;
then
\
eatmydata pip
install
$APPS
;
\
fi
;
\
eatmydata
aleksis-admin
yarn
install
;
\
eatmydata yarn
pkg
install
;
\
eatmydata aleksis-admin write_webpack_entrypoints
;
\
yarn run webpack
;
\
yarn
pkg
run webpack
;
\
eatmydata aleksis-admin collectstatic
--no-input
;
\
rm
-rf
/usr/local/share/.cache
;
\
eatmydata apt-get remove
--purge
-y
yarnpkg
$BUILD_DEPS
;
\
Loading