django-template/Dockerfiles/django/Dockerfile

26 lines
608 B
Docker
Raw Normal View History

2021-04-01 09:48:35 +02:00
FROM debian:stable-slim
ENV PYTHONUNBUFFERED: 1
# set work directory
WORKDIR /usr/src/app
2021-04-28 16:43:39 +02:00
# set time
RUN ln -fs /usr/share/zoneinfo/Europe/Madrid /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
2021-04-01 09:48:35 +02:00
# install software
RUN apt update
2021-05-11 17:23:02 +02:00
RUN apt install -y build-essential python3-pip gettext
2021-04-01 09:48:35 +02:00
# install dependencies
RUN pip3 install --upgrade pip
COPY ./requirements.txt .
RUN pip3 install -r requirements.txt
# launcher
COPY django-launcher.dev.sh /django-launcher.dev.sh
COPY django-launcher.pro.sh /django-launcher.pro.sh
RUN chmod +x /django-launcher.dev.sh
RUN chmod +x /django-launcher.pro.sh