2023-10-10 08:07:46 +00:00
|
|
|
# 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
|
|
|
|
|
2024-01-24 00:05:37 +00:00
|
|
|
WORKDIR /opt/musician
|
2023-10-10 08:07:46 +00:00
|
|
|
|
|
|
|
RUN python3 -m pip install --upgrade pip
|
|
|
|
RUN pip install wheel
|
|
|
|
|
2024-01-24 00:05:37 +00:00
|
|
|
COPY django-musician/requirements.txt .
|
2023-10-10 08:07:46 +00:00
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
2024-01-24 00:05:37 +00:00
|
|
|
COPY django-musician .
|
|
|
|
|
2023-10-10 08:07:46 +00:00
|
|
|
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" ]
|