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
This commit is contained in:
2025-08-01 19:28:57 +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 build
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" ]