-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (17 loc) · 940 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
FROM pretix/standalone:4.7.1
USER root
ENV DJANGO_SETTINGS_MODULE=
RUN sed -i '/max-requests-jitter 50/a\\t--timeout 1200 \\' /usr/local/bin/pretix
RUN pip3 install "pretix-passbook==1.9.1" "pretix-pages==1.4.1" "pretix-fontpack-free==1.8.0"
ARG tag
ENV PYTHONPATH=$PYTHONPATH:/pretix/src
ENV DJANGO_SETTINGS_MODULE=production_settings
RUN pip3 install "git+https://github.com/theborderland/membership.git#subdirectory=pretix-borderland&egg=pretix_borderland&fixme_hash=$TAG"
RUN pip3 install "django-mysql==4.5.0" django_countries
RUN cp -r /usr/local/lib/python*/site-packages/pretix_borderland /pretix/src/pretix/plugins/ && \
cp -r /usr/local/lib/python*/site-packages/pretix_borderland/pretix-locale/* /pretix/src/pretix/locale/ && \
chown -R pretixuser /pretix/src/pretix/locale /pretix/src/pretix/plugins/pretix_borderland
WORKDIR /pretix/src
RUN python3 manage.py makemigrations
RUN make production
USER pretixuser