Add CI/CD with github action

This commit is contained in:
chamomind 2023-11-30 01:06:11 +07:00
parent 68f0ae5137
commit 6348ea0ba6
5 changed files with 151 additions and 4 deletions

View file

@ -1,4 +1,5 @@
FROM node:18-alpine as base
# docker build -t docker.frappet.com/edm/core .
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
@ -10,7 +11,8 @@ WORKDIR /app
COPY . .
FROM base AS deps
RUN npm install
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
# RUN npm install
FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile