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

Cleanup

parent e7b7a9c8
No related branches found
No related tags found
No related merge requests found
...@@ -2,18 +2,12 @@ FROM lsiobase/alpine:3.12 ...@@ -2,18 +2,12 @@ FROM lsiobase/alpine:3.12
LABEL maintainer="Griefed <griefed@griefed.de>" LABEL maintainer="Griefed <griefed@griefed.de>"
# Test whether these are needed. If not, remove # Install dependencies, download app, build app, remove unneeded stuff
ENV HOME="/app"
ENV NODE_ENV="production"
# Build our D-Zone S6 image with lsiobase alpine. Much love to, Linuxserver.io!
RUN \ RUN \
echo "**** install dependencies and build tools and stuff ****" && \ echo "**** install dependencies and build tools and stuff ****" && \
apk add --no-cache \ apk add --no-cache \
git \ git \
nano \ npm && \
npm \
nodejs && \
mkdir -p \ mkdir -p \
/app/d-zone && \ /app/d-zone && \
git clone -b \ git clone -b \
...@@ -21,15 +15,15 @@ RUN \ ...@@ -21,15 +15,15 @@ RUN \
https://github.com/d-zone-org/d-zone.git \ https://github.com/d-zone-org/d-zone.git \
/app/d-zone && \ /app/d-zone && \
echo "**** run npm install and build D-Zone ****" && \ echo "**** run npm install and build D-Zone ****" && \
cd /app/d-zone && \ cd /app/d-zone && \
npm install --no-optional && \ npm install && \
npm run-script build && \ npm run-script build && \
echo "**** delete git as we no longer need it ****" && \ echo "**** delete git as we no longer need it ****" && \
apk del --purge \ apk del --purge \
git && \ git && \
rm -rf \ rm -rf \
/root/.cache \ /root/.cache \
/tmp/* /tmp/*
# Copy local files # Copy local files
COPY root/ / COPY root/ /
......
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