-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
34 lines (25 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:buster
RUN apt update && apt upgrade -y && apt install -y --force-yes python3-pip libpq-dev locales locales-all cron make ruby ruby-dev
RUN gem install sass
RUN pip3 install uwsgi
COPY requirements.txt /
RUN pip3 install -r /requirements.txt && rm /requirements.txt
# French ENV for date
RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LC_ALL fr_FR
ENV LANG fr_FR
ENV LANGUAGE fr_FR
RUN mkdir /srv/app /srv/static /srv/media
WORKDIR /srv/app
COPY manage.py .
COPY static/img/ openrepairplatform/static/img/
COPY deployment/django/uwsgi.ini .
COPY deployment/django/start.sh /
COPY openrepairplatform ./openrepairplatform
COPY deployment/django/openrepairplatform.cron /etc/cron.d/openrepairplatform
RUN chmod 0644 /etc/cron.d/openrepairplatform
RUN cron
RUN useradd openrepairplatform
EXPOSE 8000
CMD /start.sh