2019-07-05 21:23:24 +02:00
|
|
|
FROM debian:buster
|
|
|
|
LABEL maintainer="Jan Dittberner <jan@dittberner.info>"
|
2018-11-19 23:28:40 +01:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2019-07-05 21:23:24 +02:00
|
|
|
build-essential \
|
2018-11-19 23:28:40 +01:00
|
|
|
dumb-init \
|
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
libpq-dev \
|
2019-07-05 21:23:24 +02:00
|
|
|
postgresql-client \
|
2018-11-19 23:28:40 +01:00
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
2020-03-02 16:49:23 +01:00
|
|
|
python3-setuptools \
|
|
|
|
python3-wheel \
|
2018-11-19 23:28:40 +01:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*.*
|
|
|
|
|
|
|
|
VOLUME /srv/gnuviechadmin/media /srv/gnuviechadmin/static
|
|
|
|
WORKDIR /srv/gnuviechadmin
|
|
|
|
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
|
2020-03-02 16:49:23 +01:00
|
|
|
RUN python3 -m pip install -U --prefix=/usr/local pip && \
|
|
|
|
/usr/local/bin/pip3 install --prefix=/usr/local pipenv
|
2018-11-19 23:28:40 +01:00
|
|
|
|
|
|
|
COPY Pipfile Pipfile.lock /srv/gnuviechadmin/
|
|
|
|
|
|
|
|
RUN pipenv install --system --deploy --ignore-pipfile --dev
|
|
|
|
|
2019-07-05 21:23:24 +02:00
|
|
|
COPY gnuviechadmin.sh /srv/
|
|
|
|
|
2018-11-19 23:28:40 +01:00
|
|
|
EXPOSE 8000
|
|
|
|
VOLUME /srv/gnuviechadmin
|
|
|
|
|
|
|
|
ENTRYPOINT ["dumb-init", "/srv/gnuviechadmin.sh"]
|