This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
idhub-docker/docker/musician.Dockerfile
pedro 78a79e69e9 preserve docker build cache on orchestra musician
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
2024-01-24 01:05:37 +01:00

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" ]