From 070f886d3bf30e46c13ad98ffc5600a6ef04e6d2 Mon Sep 17 00:00:00 2001
From: Griefed <44273438+Griefed@users.noreply.github.com>
Date: Thu, 15 Oct 2020 16:30:45 +0200
Subject: [PATCH] Cleanup

---
 Dockerfile.noproxy | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/Dockerfile.noproxy b/Dockerfile.noproxy
index 2b09a2f..6fbea62 100644
--- a/Dockerfile.noproxy
+++ b/Dockerfile.noproxy
@@ -2,18 +2,12 @@ FROM lsiobase/alpine:3.12
 
 LABEL maintainer="Griefed <griefed@griefed.de>"
 
-# Test whether these are needed. If not, remove
-ENV HOME="/app"
-ENV NODE_ENV="production"
-
-# Build our D-Zone S6 image with lsiobase alpine. Much love to, Linuxserver.io!
+# Install dependencies, download app, build app, remove unneeded stuff
 RUN \
         echo "**** install dependencies and build tools and stuff ****" && \
         apk add --no-cache \
                 git \
-                nano \
-                npm \
-                nodejs && \
+                npm && \
         mkdir -p \
                 /app/d-zone && \
         git clone -b \
@@ -21,15 +15,15 @@ RUN \
                 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 && \
+                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/*
+                apk del --purge \
+                        git && \
+                rm -rf \
+                        /root/.cache \
+                        /tmp/*
 
 # Copy local files
 COPY root/ /
-- 
GitLab