From a098395daf8614dc3d1a69d28f3238b3c9923e87 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 30 Sep 2023 19:59:09 +0200 Subject: [PATCH] Build Docker image in production mode Signed-off-by: Knut Ahlers --- Dockerfile | 3 ++- Dockerfile.minimal | 3 ++- Makefile | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27a9c83..d9e3f64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM luzifer/archlinux as builder ENV CGO_ENABLED=0 \ - GOPATH=/go + GOPATH=/go \ + NODE_ENV=production COPY . /go/src/github.com/Luzifer/ots WORKDIR /go/src/github.com/Luzifer/ots diff --git a/Dockerfile.minimal b/Dockerfile.minimal index 301f0b9..e4206a4 100644 --- a/Dockerfile.minimal +++ b/Dockerfile.minimal @@ -1,7 +1,8 @@ FROM luzifer/archlinux as builder ENV CGO_ENABLED=0 \ - GOPATH=/go + GOPATH=/go \ + NODE_ENV=production COPY . /go/src/github.com/Luzifer/ots WORKDIR /go/src/github.com/Luzifer/ots diff --git a/Makefile b/Makefile index 4c4adc1..69bf56e 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ generate-apidocs: mv /tmp/api.html frontend/ generate-inner: - npx --yes npm@latest ci + npx --yes npm@latest ci --include=dev node ./ci/build.mjs publish: download_libs generate-inner generate-apidocs