commit 333d482bc81497d40ebe0c4e8c8089baecdb3a8c
parent dc55e552be67b4000fed22f555f4f5f3bdb059bc
Author: Joris Vink <joris@coders.se>
Date: Wed, 19 May 2021 09:19:16 +0200
Add initial kodev Dockerfile.
Diffstat:
kodev/Dockerfile | 34 ++++++++++++++++++++++++++++++++++
kodev/entry.sh | 5 +++++
2 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/kodev/Dockerfile b/kodev/Dockerfile
@@ -0,0 +1,34 @@
+FROM alpine:latest
+
+MAINTAINER Joris Vink <joris@coders.se>
+
+ADD https://git.kore.io/kore.git/refs/heads/master master.commit
+
+RUN set -e && \
+ apk add --no-cache --virtual .build-deps \
+ musl-dev \
+ linux-headers \
+ bsd-compat-headers \
+ gcc \
+ make \
+ openssl-dev \
+ postgresql-dev \
+ pkgconfig \
+ libcurl \
+ curl-dev \
+ libpq \
+ git \
+ python3-dev && \
+ git clone https://git.kore.io/kore.git && \
+ cd kore && \
+ make clean && \
+ make PYTHON=1 ACME=1 CURL=1 PGSQL=1 && \
+ make install && \
+ cd .. && \
+ rm -rf kore*
+
+COPY entry.sh /
+
+EXPOSE 80 443 8888
+
+ENTRYPOINT ["/entry.sh"]
diff --git a/kodev/entry.sh b/kodev/entry.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+exec kodev $@