78a79e69e9
produce docker build speedup - git checkout produce docker cache invalidation, do it when needed - use /opt/app PATH for the two containers - use two different layers: one to do the pip requirements, the other for the rest of the sourcecode
29 lines
624 B
Docker
29 lines
624 B
Docker
# right now this is this is heavily inspired to git repo django-musician/Dockerfile
|
|
#FROM python
|
|
FROM debian:bullseye-slim
|
|
|
|
RUN apt update && apt-get install -y \
|
|
python3-minimal \
|
|
python3-pip \
|
|
python3-dev \
|
|
python-is-python3
|
|
|
|
WORKDIR /opt/musician
|
|
|
|
RUN python3 -m pip install --upgrade pip
|
|
RUN pip install wheel
|
|
|
|
COPY django-musician/requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY django-musician .
|
|
|
|
COPY docker/musician.entrypoint.sh .
|
|
ENTRYPOINT sh ./musician.entrypoint.sh
|
|
|
|
#RUN python manage.py migrate
|
|
#
|
|
#EXPOSE 8080
|
|
#
|
|
#ENTRYPOINT [ "python", "manage.py", "runserver", "0.0.0.0:8080" ]
|