Skip to content
Snippets Groups Projects
Unverified Commit b2a296e3 authored by Griefed's avatar Griefed Committed by GitHub
Browse files

Reverse-Proxy access Dockerfile

parent 2e2f9dd5
No related branches found
No related tags found
No related merge requests found
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 a reverse proxy like NGINX"
# 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 \
heroku \
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 --no-optional && \
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment