added dockerfiles
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user