You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
418 B
Docker

FROM node:14.14.0-alpine3.10 AS builder
WORKDIR /
COPY ./src /src
COPY ./package*.json ./
COPY ./gulpfile.js ./
COPY ./tsconfig.json ./
COPY ./.eslintrc.json ./
RUN npm install
RUN npm install gulp
RUN npx eslint --config .eslintrc.json
RUN npx gulp
FROM node:14.14.0-alpine3.10
COPY --from=builder ./dist ./dist
COPY --from=builder ./package*.json ./
RUN npm install --production
EXPOSE 4000
CMD ["npm", "start"]