Damillora
597af72786
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
15 lines
289 B
Docker
15 lines
289 B
Docker
FROM node:20-alpine
|
|
# install dependencies
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
FROM node:20-alpine
|
|
WORKDIR /app
|
|
COPY --from=0 /app/build /app
|
|
COPY --from=0 /app/package.json /app
|
|
COPY --from=0 /app/node_modules /app/node_modules
|
|
|
|
EXPOSE 3000
|
|
CMD ["node","./index.js"]
|