Build Docker image in production mode
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8c0807d486
commit
a098395daf
3 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue