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
ece2054c
Verified
Commit
ece2054c
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
DO not use a venv inside docker.
parent
f6c6985a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-5
4 additions, 5 deletions
Dockerfile
docker/entrypoint.sh
+1
-3
1 addition, 3 deletions
docker/entrypoint.sh
with
5 additions
and
8 deletions
Dockerfile
+
4
−
5
View file @
ece2054c
...
...
@@ -36,14 +36,13 @@ COPY . /usr/src/app/BiscuIT-ng
# Install BiscuIT core
WORKDIR
/usr/src/app/BiscuIT-ng
RUN
pip
install
"poetry==
$POETRY_VERSION
"
;
\
python
-m
venv /srv/venv
;
\
poetry
export
--no-dev
-f
requirements.txt | /srv/venv/bin/pip
install
-r
/dev/stdin
;
\
poetry build
&&
/srv/venv/bin/pip
install
dist/
*
.whl
poetry
export
-f
requirements.txt | pip
install
-r
/dev/stdin
;
\
poetry build
&&
pip
install
dist/
*
.whl
# Build messages and assets
RUN
mkdir
/etc/biscuit /srv/media /srv/static /var/backups/biscuit
;
\
/srv/venv/bin/
python manage.py compilemessages
;
\
/srv/venv/bin/
python manage.py collectstatic
--no-input
--clear
python manage.py compilemessages
;
\
python manage.py collectstatic
--no-input
--clear
# Clean up build dependencies
RUN
apt-get remove
--purge
-y
\
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
+
1
−
3
View file @
ece2054c
...
...
@@ -24,9 +24,7 @@ while ! nc -z $BISCUIT_database__host $BISCUIT_database__port; do
sleep
0.1
done
source
/srv/venv/bin/activate
python manage.py flush
--no-input
python manage.py migrate
exec
/srv/venv/bin/
gunicorn biscuit.core.wsgi
--bind
${
GUNICORN_BIND
}
exec
gunicorn biscuit.core.wsgi
--bind
${
GUNICORN_BIND
}
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