feat: ci/cd deploy

This commit is contained in:
decentral1se
2023-01-24 12:39:33 +01:00
parent bdf11ce3b6
commit ad62f72a56
5 changed files with 146 additions and 35 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM node:18-alpine as base
FROM base as builder
WORKDIR /home/node
COPY package*.json ./
COPY . .
RUN yarn install
RUN yarn build
FROM base as runtime
ENV NODE_ENV=production
WORKDIR /home/node
COPY package*.json ./
RUN yarn install --production
COPY --from=builder /home/node/dist ./dist
COPY --from=builder /home/node/build ./build
EXPOSE 3000