File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM node:hydrogen-alpine as base
1
+ FROM node:hydrogen-alpine AS base
2
2
3
3
WORKDIR /usr/src/app
4
4
@@ -9,7 +9,7 @@ RUN deluser --remove-home node \
9
9
&& addgroup -S node -g 10000 \
10
10
&& adduser -S -G node -u 10000 node
11
11
12
- FROM base as build
12
+ FROM base AS build
13
13
14
14
COPY package-lock.json ./
15
15
COPY package.json ./
@@ -20,7 +20,7 @@ RUN chmod u+x ./server.js
20
20
RUN npm pack
21
21
RUN tar -xzf *.tgz
22
22
23
- FROM base as install
23
+ FROM base AS install
24
24
25
25
ENV NODE_ENV=production
26
26
@@ -29,7 +29,7 @@ COPY package.json ./
29
29
RUN --mount=type=cache,target=/root/.npm npm ci
30
30
RUN rm package.json package-lock.json
31
31
32
- FROM base as app
32
+ FROM base AS app
33
33
34
34
COPY --from=install /usr/src/app .
35
35
COPY --from=build /usr/src/app/package .
You can’t perform that action at this time.
0 commit comments