From 900e478e00b722cd0360833036ce62fe9684121f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 20 Jan 2022 01:22:35 +0100 Subject: [PATCH] [ci] Set application to production mode on publish Signed-off-by: Knut Ahlers --- .repo-runner.yaml | 1 + Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.repo-runner.yaml b/.repo-runner.yaml index 8067666..5a7317a 100644 --- a/.repo-runner.yaml +++ b/.repo-runner.yaml @@ -15,4 +15,5 @@ environment: GO111MODULE: on GOPATH: /go MOD_MODE: readonly + NODE_ENV: production PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/go/bin diff --git a/Dockerfile b/Dockerfile index a520ced..631c940 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ COPY . /go/src/github.com/Luzifer/twitch-bot WORKDIR /go/src/github.com/Luzifer/twitch-bot ENV CGO_ENABLED=0 \ - GOPATH=/go + GOPATH=/go \ + NODE_ENV=production RUN set -ex \ && pacman -Syy --noconfirm \