Skip to content

Commit 1478b42

Browse files
committed
Use consistent case for AS in Dockerfile
1 parent 8809e33 commit 1478b42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:hydrogen-alpine as base
1+
FROM node:hydrogen-alpine AS base
22

33
WORKDIR /usr/src/app
44

@@ -9,7 +9,7 @@ RUN deluser --remove-home node \
99
&& addgroup -S node -g 10000 \
1010
&& adduser -S -G node -u 10000 node
1111

12-
FROM base as build
12+
FROM base AS build
1313

1414
COPY package-lock.json ./
1515
COPY package.json ./
@@ -20,7 +20,7 @@ RUN chmod u+x ./server.js
2020
RUN npm pack
2121
RUN tar -xzf *.tgz
2222

23-
FROM base as install
23+
FROM base AS install
2424

2525
ENV NODE_ENV=production
2626

@@ -29,7 +29,7 @@ COPY package.json ./
2929
RUN --mount=type=cache,target=/root/.npm npm ci
3030
RUN rm package.json package-lock.json
3131

32-
FROM base as app
32+
FROM base AS app
3333

3434
COPY --from=install /usr/src/app .
3535
COPY --from=build /usr/src/app/package .

0 commit comments

Comments
 (0)