Added Jenkinsfile 10

This commit is contained in:
Sebastian Seedorf
2021-04-19 12:05:03 +02:00
parent e0fd6b0c36
commit bf5eacace5
2 changed files with 16 additions and 8 deletions

View File

@@ -3,15 +3,9 @@ FROM node:15-alpine
WORKDIR /app
COPY ./public /app/public
COPY ./src /app/src
COPY ./views /app/views
COPY ./dist /app/views
COPY ./package.json /app/package.json
COPY ./package-lock.json /app/package-lock.json
COPY ./tsconfig.json /app/tsconfig.json
RUN npm install && ./node_modules/.bin/tsc && rm -rf node_modules src tsconfig.json
ENV NODE_ENV=production
RUN npm install --only=production && rm -rf package-lock.json
ENTRYPOINT npm start
EXPOSE 3000