feat/testing #52

Merged
kenobi merged 12 commits from feat/testing into master 2023-06-24 20:59:40 +02:00
Showing only changes of commit 6b0e84669a - Show all commits

View File

@ -1,11 +1,22 @@
FROM node:alpine as Build
ENV NODE_ENV=production
FROM node:alpine as files
WORKDIR /app
COPY [ "package-lock.json", "package.json", "index.ts", "tsconfig.json", "./" ]
COPY server ./server
FROM files as proddependencies
ENV NODE_ENV=production
RUN npm ci --omit=dev
FROM proddependencies as compile
RUN npm run build
CMD ["npm","run","start"]
FROM files as dependencies
RUN npm ci
FROM dependencies as test
COPY jest.config.js .
COPY tests ./tests
RUN npm run test