Build Docker image in production mode

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-09-30 19:59:09 +02:00
parent 8c0807d486
commit a098395daf
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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