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

Fix package installation.

parent 2687a131
No related branches found
No related tags found
No related merge requests found
......@@ -22,19 +22,18 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
gettext \
gunicorn \
libjs-bootstrap4 \
libpq5 \
libpq-dev \
libssl-dev \
netcat-openbsd \
python3-dev
netcat-openbsd
# Install core dependnecies
WORKDIR /usr/src/app
COPY poetry.lock pyproject.toml ./
RUN pip install "poetry==$POETRY_VERSION"; \
poetry export -f requirements.txt | pip install -r /dev/stdin
poetry export -f requirements.txt | pip install -r /dev/stdin; \
pip install gunicorn
# Install core
COPY biscuit ./biscuit/
......
......@@ -27,4 +27,8 @@ done
python manage.py flush --no-input
python manage.py migrate
exec gunicorn biscuit.core.wsgi --bind ${GUNICORN_BIND}
if [[ -n "$@" ]]; then
exec "$@"
else
exec gunicorn biscuit.core.wsgi --bind ${GUNICORN_BIND}
fi
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