Merge pull request 'development' (#51) from development into main
All checks were successful
Build and Push Latest Docker Image / build-and-push (push) Successful in 1m1s

Reviewed-on: #51
This commit is contained in:
2025-09-10 23:12:02 +00:00

View File

@@ -1,4 +1,4 @@
FROM node:lts-slim as build
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS build
WORKDIR /app
@@ -6,15 +6,15 @@ COPY package*.json ./
RUN rm -rf node_modules
RUN rm -rf build
COPY . .
RUN npm install
RUN npm run build
RUN pnpm install
RUN pnpm run build
FROM node:lts-slim as run
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS run
WORKDIR /app
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/build ./build
RUN npm install --omit=dev
RUN pnpm install --prod
EXPOSE 3000
ENTRYPOINT [ "npm", "run", "start" ]
ENTRYPOINT [ "pnpm", "run", "start" ]