kore-docker

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

Dockerfile (1085B)



      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 ADD https://git.kore.io/kore.git/refs/heads/4.x-releng 4.x-releng.commit
     11 
     12 RUN set -e && \
     13   mkdir -p /var/chroot && \
     14   addgroup -g 500 keymgr && \
     15   adduser -D -u 500 -h /var/chroot/keymgr -s /sbin/nologin -G keymgr keymgr && \
     16   addgroup -g 501 acme && \
     17   adduser -D -u 501 -h /var/chroot/acme -s /sbin/nologin -G acme acme && \
     18   addgroup -g 502 kore && \
     19   adduser -D -u 502 -h /var/chroot/kore -s /sbin/nologin -G kore kore && \
     20   apk add --no-cache --virtual .build-deps \
     21   musl-dev \
     22   linux-headers \
     23   bsd-compat-headers \
     24   gcc \
     25   make \
     26   openssl-dev \
     27   postgresql-dev \
     28   pkgconfig \
     29   libcurl \
     30   curl-dev \
     31   libpq \
     32   git \
     33   python3-dev && \
     34   git clone https://git.kore.io/kore.git && \
     35   cd kore && \
     36   git checkout 4.x-releng && \
     37   make clean && \
     38   make PYTHON=1 ACME=1 CURL=1 PGSQL=1 && \
     39   make install && \
     40   cd .. && \
     41   rm -rf kore* && \
     42   apk del .build-deps
     43 
     44 COPY entry.sh /
     45 
     46 EXPOSE 443 8888
     47 STOPSIGNAL SIGQUIT
     48 
     49 ENTRYPOINT ["/entry.sh"]