Skip to content

Commit

Permalink
pin to node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwormhole committed Oct 21, 2023
1 parent 26a81ff commit 9a3a929
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tasks:
cmds:
- |
docker build . \
-f ./docker/Dockerfile.caddy \
-t lamia:{{.VERSION}} \
docker:publish:
Expand All @@ -43,4 +44,4 @@ tasks:
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--platform="linux/arm64,linux/amd64" \
--provenance=false \
--push
--push
5 changes: 3 additions & 2 deletions docker/Dockerfile.caddy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:alpine3.17 AS build
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:20-alpine AS build

ARG BUILDPLATFORM
ARG TARGETPLATFORM
Expand All @@ -16,4 +16,5 @@ COPY --from=build /app/build /srv

EXPOSE 80

CMD ["caddy", "run", "--config=/etc/caddy/Caddyfile"]
CMD ["caddy", "run", "--config=/etc/caddy/Caddyfile"]

5 changes: 3 additions & 2 deletions docker/Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:alpine3.17 AS build
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:20-alpine AS build

ARG BUILDPLATFORM
ARG TARGETPLATFORM
Expand All @@ -18,4 +18,5 @@ EXPOSE 80

STOPSIGNAL SIGQUIT

CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 9a3a929

Please sign in to comment.