added dockerfiles

This commit is contained in:
2026-01-21 07:55:00 +01:00
parent da38de3159
commit 23748adca1
2 changed files with 29 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:24-alpine as build
WORKDIR /app/src
COPY package*.json ./
RUN npm ci
COPY . ./
RUN npm run build
FROM node:24-alpine
WORKDIR /usr/app
COPY --from=build /app/src/dist/portfolio ./
CMD node server/server.mjs
EXPOSE 4000