forked from CGM_Public/pretix_original
Dockerfile now basically works
This commit is contained in:
@@ -2,7 +2,13 @@ FROM debian:jessie
|
|||||||
|
|
||||||
RUN apt-get update && apt-get install -y supervisor python3 git python3-pip \
|
RUN apt-get update && apt-get install -y supervisor python3 git python3-pip \
|
||||||
libxml2-dev libxslt1-dev python-dev python-virtualenv locales libffi-dev \
|
libxml2-dev libxslt1-dev python-dev python-virtualenv locales libffi-dev \
|
||||||
build-essential python3-dev --no-install-recommends
|
build-essential python3-dev zlib1g-dev libssl-dev npm gettext \
|
||||||
|
--no-install-recommends
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
RUN npm install -g less@2.5.0
|
||||||
|
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
|
RUN ln -s /node_modules/.bin/lessc /usr/bin/lessc
|
||||||
|
|
||||||
RUN dpkg-reconfigure locales && \
|
RUN dpkg-reconfigure locales && \
|
||||||
locale-gen C.UTF-8 && \
|
locale-gen C.UTF-8 && \
|
||||||
@@ -13,11 +19,17 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
|||||||
|
|
||||||
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
ADD gunicorn_starter.bash /gunicorn_starter.bash
|
ADD gunicorn_starter.bash /gunicorn_starter.bash
|
||||||
|
|
||||||
ADD src /src
|
ADD src /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
RUN pip3 install gunicorn
|
RUN pip3 install gunicorn
|
||||||
|
|
||||||
|
ADD local_settings.py /src/pretix/local_settings.py
|
||||||
|
|
||||||
|
RUN make production
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["/usr/bin/supervisord"]
|
CMD ["/usr/bin/supervisord"]
|
||||||
|
|
||||||
|
|||||||
5
deployment/docker/standalone/local_settings.py
Normal file
5
deployment/docker/standalone/local_settings.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
COMPRESS_OFFLINE = True
|
||||||
|
COMPRESS_ENABLED = True
|
||||||
|
#DEBUG = False
|
||||||
|
#TEMPLATE_DEBUG = False
|
||||||
|
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
[program:gunicorn]
|
[program:gunicorn]
|
||||||
command=/bin/bash gunicorn_starter.bash
|
command=/bin/bash /gunicorn_starter.bash
|
||||||
|
|||||||
Reference in New Issue
Block a user