Skip to content

Commit

Permalink
Fix docker warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alete8 committed Oct 23, 2024
1 parent 9c4e2f8 commit 1b83871
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG NODE_VERSION=20.18.0

FROM node:${NODE_VERSION}-alpine as base
FROM node:${NODE_VERSION}-alpine AS base
WORKDIR /usr/src/app
EXPOSE 3000

FROM base as test
FROM base AS test
ENV NODE_ENV test
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=package-lock.json,target=package-lock.json \
Expand All @@ -14,7 +14,7 @@ USER node
COPY . .
RUN npm run test:ci

FROM base as dev
FROM base AS dev
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=package-lock.json,target=package-lock.json \
--mount=type=cache,target=/root/.npm \
Expand Down

0 comments on commit 1b83871

Please sign in to comment.