medicine-mts/Dockerfile

31 lines
505 B
Docker

FROM python:3.12.2
RUN apt-get update
RUN apt-get install -y \
vim \
supervisor
RUN pip install pip==24.0
WORKDIR /app
ADD requirements.txt ./
RUN pip install -r ./requirements.txt
COPY manage.py wsgi.py ./
COPY ./appa/ ./appa/
RUN python manage.py collectstatic --noinput
RUN chmod -R 777 /app/django_static
ADD ./client/build /client
ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]