Skip to content

Commit

Permalink
New experiment with build and start
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed Sep 27, 2024
1 parent 79b4e90 commit bdf42d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lagoon/node.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM uselagoon/node-20-builder:latest as builder
COPY package.json /app/
RUN npm install
RUN npm run build
RUN yarn

FROM uselagoon/node-20:latest
COPY --from=builder /app/node_modules /app/node_modules
Expand Down
3 changes: 1 addition & 2 deletions lagoon/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
# fi

cd /app
npm run start

yarn build && yarn start
exit 0;

0 comments on commit bdf42d7

Please sign in to comment.