add cicd
This commit is contained in:
@@ -6,8 +6,12 @@ RUN --mount=type=cache,target=/root/.npm npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM build AS test
|
||||
RUN npm run lint
|
||||
RUN npm run typecheck
|
||||
RUN npm test -- --run
|
||||
|
||||
FROM nginxinc/nginx-unprivileged:1.27-alpine
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build --chown=101:101 /app/dist /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
Reference in New Issue
Block a user