kore-docker

Official Kore Dockerfiles
Commits | Files | Refs | README | git clone

Dockerfile (1032B)



      1 FROM alpine:latest
      2 
      3 MAINTAINER Joris Vink <joris@coders.se>
      4 
      5 RUN apk add --no-cache \
      6   curl \
      7   libpq \
      8   python3
      9 
     10 RUN set -e && \
     11   mkdir -p /var/chroot && \
     12   addgroup -g 500 keymgr && \
     13   adduser -D -u 500 -h /var/chroot/keymgr -s /sbin/nologin -G keymgr keymgr && \
     14   addgroup -g 501 acme && \
     15   adduser -D -u 501 -h /var/chroot/acme -s /sbin/nologin -G acme acme && \
     16   addgroup -g 502 kore && \
     17   adduser -D -u 502 -h /var/chroot/kore -s /sbin/nologin -G kore kore && \
     18   apk add --no-cache --virtual .build-deps \
     19   musl-dev \
     20   linux-headers \
     21   bsd-compat-headers \
     22   gcc \
     23   make \
     24   openssl-dev \
     25   postgresql-dev \
     26   pkgconfig \
     27   libcurl \
     28   curl-dev \
     29   libpq \
     30   python3-dev && \
     31   curl -O https://kore.io/releases/kore-4.2.2.tar.gz && \
     32   tar zfvx kore-4.2.2.tar.gz && \
     33   cd kore-4.2.2 && \
     34   make clean && \
     35   make PYTHON=1 ACME=1 CURL=1 PGSQL=1 && \
     36   make install && \
     37   cd .. && \
     38   rm -rf kore-4.2.2* && \
     39   apk del .build-deps
     40 
     41 COPY entry.sh /
     42 
     43 EXPOSE 443 8888
     44 STOPSIGNAL SIGQUIT
     45 
     46 ENTRYPOINT [ "/entry.sh" ]