Skip to content

Commit

Permalink
Build Docker image in production mode
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Sep 30, 2023
1 parent 8c0807d commit a098395
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a098395

Please sign in to comment.