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
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
3 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,8 @@
FROM luzifer/archlinux as builder FROM luzifer/archlinux as builder
ENV CGO_ENABLED=0 \ ENV CGO_ENABLED=0 \
GOPATH=/go GOPATH=/go \
NODE_ENV=production
COPY . /go/src/github.com/Luzifer/ots COPY . /go/src/github.com/Luzifer/ots
WORKDIR /go/src/github.com/Luzifer/ots WORKDIR /go/src/github.com/Luzifer/ots

View file

@ -1,7 +1,8 @@
FROM luzifer/archlinux as builder FROM luzifer/archlinux as builder
ENV CGO_ENABLED=0 \ ENV CGO_ENABLED=0 \
GOPATH=/go GOPATH=/go \
NODE_ENV=production
COPY . /go/src/github.com/Luzifer/ots COPY . /go/src/github.com/Luzifer/ots
WORKDIR /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/ mv /tmp/api.html frontend/
generate-inner: generate-inner:
npx --yes npm@latest ci npx --yes npm@latest ci --include=dev
node ./ci/build.mjs node ./ci/build.mjs
publish: download_libs generate-inner generate-apidocs publish: download_libs generate-inner generate-apidocs