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

DO not use a venv inside docker.

parent f6c6985a
No related branches found
No related tags found
No related merge requests found
......@@ -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 \
......
......@@ -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}
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