From 97c071bc4d4ad4b4598ceb17fc122367f36a4822 Mon Sep 17 00:00:00 2001 From: Griefed <44273438+Griefed@users.noreply.github.com> Date: Fri, 16 Oct 2020 09:09:52 +0200 Subject: [PATCH] Port access Dockerfile --- Dockerfile.port | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile.port diff --git a/Dockerfile.port b/Dockerfile.port new file mode 100644 index 0000000..959a884 --- /dev/null +++ b/Dockerfile.port @@ -0,0 +1,33 @@ +FROM lsiobase/alpine:3.12 + +LABEL maintainer="Griefed <griefed@griefed.de>" +LABEL description="Dockerfile to build an image of D-Zone which is to be accessed with IP:PORT" + +# Install dependencies, download app, build app, remove unneeded stuff +RUN \ + echo "**** install dependencies and build tools and stuff ****" && \ + apk add --no-cache \ + git \ + npm && \ + mkdir -p \ + /app/d-zone && \ + git clone -b \ + v1/docker \ + https://github.com/d-zone-org/d-zone.git \ + /app/d-zone && \ + echo "**** run npm install and build D-Zone ****" && \ + cd /app/d-zone && \ + npm install && \ + npm run-script build && \ + echo "**** delete git as we no longer need it ****" && \ + apk del --purge \ + git && \ + rm -rf \ + /root/.cache \ + /tmp/* + +# Copy local files +COPY root/ / + +# Communicate port to be used +EXPOSE 3000 -- GitLab