Skip to content

Commit

Permalink
fix(docker): correct build stage name
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Dec 27, 2022
1 parent 257da4d commit ea0def1
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
Expand Up @@ -7,7 +7,7 @@ VOLUME /srv/app
ENTRYPOINT ["node", "./src/generator.cjs"]


FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS fetch
FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS build

WORKDIR /srv/app/

Expand All @@ -25,7 +25,7 @@ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e

WORKDIR /srv/app/

COPY --from=fetch /srv/app/ ./
COPY --from=build /srv/app/ ./

RUN npm install -g pnpm && \
pnpm run test
Expand All @@ -35,7 +35,7 @@ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e

WORKDIR /srv/app/

COPY --from=fetch /srv/app/ /srv/app/
COPY --from=build /srv/app/ /srv/app/
COPY --from=test /srv/app/package.json /tmp/package.json


Expand Down

0 comments on commit ea0def1

Please sign in to comment.