Add CI/CD with github action
This commit is contained in:
parent
68f0ae5137
commit
6348ea0ba6
5 changed files with 151 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
Services/server/src/ver.json
Normal file
4
Services/server/src/ver.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version":"Auto gen version",
|
||||
"builddate":"2020-02-02_22:22:22"
|
||||
}
|
||||
|
|
@ -2,9 +2,7 @@
|
|||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
|
||||
"strict": true,
|
||||
|
||||
"esModuleInterop": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue