"Fossies" - the Fresh Open Source Software Archive

Member "buku-4.4/Dockerfile" (15 Jun 2020, 568 Bytes) of package /linux/privat/buku-4.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 FROM python:alpine
    2 
    3 MAINTAINER Ameya Shenoy "shenoy.ameya@gmail.com"
    4 
    5 ENV BUKUSERVER_PORT=5001
    6 
    7 COPY . /buku
    8 
    9 RUN set -ex \
   10   && apk add --no-cache --virtual .build-deps \
   11     gcc \
   12     openssl-dev \
   13     musl-dev \
   14     libffi-dev \
   15   && pip install -U --no-cache-dir \
   16     pip \
   17     gunicorn \
   18     /buku[server] \
   19   && apk del .build-deps \
   20   && rm -rf /buku
   21 
   22 HEALTHCHECK --interval=1m --timeout=10s \
   23   CMD nc -z localhost ${BUKUSERVER_PORT} || exit 1
   24 
   25 ENTRYPOINT gunicorn --bind 0.0.0.0:${BUKUSERVER_PORT} "bukuserver.server:create_app()"
   26 EXPOSE ${BUKUSERVER_PORT}
   27