FEAT: Added dockerfile
Some checks failed
Build and Push Latest Docker Image / build-and-push (push) Failing after 25s
Run Unit and Integration Tests / test (push) Has been cancelled

This commit is contained in:
2025-06-18 19:22:35 +01:00
parent 31d62dda97
commit 842d852b61

20
dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:lts-slim as build
WORKDIR /app
COPY package*.json ./
RUN rm -rf node_modules
RUN rm -rf build
COPY . .
RUN npm install
RUN npm run build
FROM node:lts-slim as run
WORKDIR /app
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/build ./build
RUN npm install --omit=dev
EXPOSE 3000
ENTRYPOINT [ "npm", "run", "start" ]