Jan Dittberner
977189c263
This commit updates the docker image to be based on Debian 10 Buster. The startup script waits until the database container becomes available. Needed dependencies for building the PostgreSQL driver were added to the docker image.
34 lines
786 B
Docker
34 lines
786 B
Docker
FROM debian:buster
|
|
LABEL maintainer="Jan Dittberner <jan@dittberner.info>"
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
dumb-init \
|
|
gettext \
|
|
git \
|
|
libpq-dev \
|
|
postgresql-client \
|
|
python3-dev \
|
|
python3-pip \
|
|
&& 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
|
|
|
|
RUN python3 -m pip install -U pip && pip3 install pipenv
|
|
|
|
COPY Pipfile Pipfile.lock /srv/gnuviechadmin/
|
|
|
|
RUN pipenv install --system --deploy --ignore-pipfile --dev
|
|
|
|
COPY gnuviechadmin.sh /srv/
|
|
|
|
EXPOSE 8000
|
|
VOLUME /srv/gnuviechadmin
|
|
|
|
ENTRYPOINT ["dumb-init", "/srv/gnuviechadmin.sh"]
|