Skip to content

Commit 08f9875

Browse files
committed
Fix Dockerfile checks
1 parent 04adc06 commit 08f9875

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG \
88
# Node
99
# ============================================================================
1010

11-
FROM node:20.14-alpine as node
11+
FROM node:20.14-alpine AS node
1212

1313
# Always install security updated e.g. https://pythonspeed.com/articles/security-updates-in-docker/
1414
# Update local cache so that other stages don't need to update cache
@@ -19,7 +19,7 @@ RUN apk update \
1919
# Node
2020
# ============================================================================
2121
#
22-
FROM node as deps
22+
FROM node AS deps
2323
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
2424
RUN apk add --no-cache libc6-compat
2525
WORKDIR /app
@@ -80,4 +80,4 @@ ENV PORT=3000
8080

8181
# server.js is created by next build from the standalone output
8282
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
83-
CMD HOSTNAME="0.0.0.0" node server.js
83+
CMD ["HOSTNAME='0.0.0.0'", "node", "server.js"]

0 commit comments

Comments
 (0)