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
4 years ago
WORKDIR /
COPY ./src /src
COPY ./package*.json ./
COPY ./gulpfile.js ./
COPY ./tsconfig.json ./
COPY ./.eslintrc.json ./
4 years ago
RUN npm install
4 years ago
RUN npm install gulp
RUN npx eslint --config .eslintrc.json
RUN npx gulp
4 years ago
FROM node:14.14.0-alpine3.10
4 years ago
COPY --from=builder ./dist ./dist
COPY --from=builder ./package*.json ./
RUN npm install --production
4 years ago
EXPOSE 4000
CMD ["npm", "start"]