4 Commits

Author SHA1 Message Date
dc00eff17c Merge pull request 'fix: Corrected duplicated build stage in dockerfile' (#50) from chore/base-image into development
All checks were successful
Build and Push Development Docker Image / build-and-push (push) Successful in 50s
Reviewed-on: #50
2025-08-01 19:32:46 +00:00
fe36594189 fix: Corrected duplicated build stage in dockerfile 2025-08-01 20:32:01 +01:00
aa8e55c9a6 Merge pull request 'chore: Updated dockerfile to use new base image for smaller container sizes' (#49) from chore/base-image into development
Some checks failed
Build and Push Development Docker Image / build-and-push (push) Failing after 15s
Reviewed-on: #49
2025-08-01 19:28:57 +00:00
e2b276dc0e chore: Updated dockerfile to use new base image for smaller container sizes 2025-08-01 20:27:11 +01: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" ]