mirror of
https://github.com/Luzifer/ots.git
synced 2025-02-25 09:21:16 -05:00
Build Docker image in production mode
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8c0807d486
commit
a098395daf
@ -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…
x
Reference in New Issue
Block a user