Commit f7261bf1 authored by edpibu's avatar edpibu 🚵🏻

Install apt packages in Dockerfile

parent e2a9d4ed
Pipeline #1072 passed with stage
in 3 minutes and 7 seconds
......@@ -9,16 +9,17 @@ WORKDIR /var/www/aube
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
COPY apt_requirements.txt ./
RUN apt update \
&& apt install -y TODO \
&& apt install -y $(cat ./apt_requirements.txt) \
&& rm -rf /var/lib/apt/lists/*
# Pass only port 8080
EXPOSE 8080
# Set entrypoint : make migrations and collect statics
COPY update.sh ./
COPY . ./
ENTRYPOINT [ "./update.sh" ]
# Start Django app
CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8080"]
#!/bin/sh
# Migrate database
python manage.py migrate --noinput
python3 manage.py migrate --noinput
# Collect statics
python manage.py collectstatic --noinput
python3 manage.py collectstatic --noinput
# Compile messages
python manage.py compilemessages --noinput
python3 manage.py compilemessages --noinput
exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment