Skip to content

Commit

Permalink
Use consistent case for AS in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jul 17, 2024
1 parent 8809e33 commit 748c53f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:hydrogen-alpine as base
FROM node:hydrogen-alpine AS base

WORKDIR /usr/src/app

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

FROM base as build
FROM base AS build

COPY package-lock.json ./
COPY package.json ./
Expand All @@ -20,7 +20,7 @@ RUN chmod u+x ./server.js
RUN npm pack
RUN tar -xzf *.tgz

FROM base as install
FROM base AS install

ENV NODE_ENV=production

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

FROM base as app
FROM base AS app

COPY --from=install /usr/src/app .
COPY --from=build /usr/src/app/package .
Expand Down

0 comments on commit 748c53f

Please sign in to comment.