|
|
@ -1,17 +1,20 @@
|
|
|
|
FROM node AS builder
|
|
|
|
FROM node:14.14.0-alpine3.10 AS builder
|
|
|
|
|
|
|
|
RUN npm --version
|
|
|
|
WORKDIR /
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
|
|
|
|
COPY ./src /src
|
|
|
|
COPY ./src /src
|
|
|
|
COPY ./package*.json ./
|
|
|
|
COPY ./package*.json ./
|
|
|
|
COPY ./gulpfile.js ./
|
|
|
|
COPY ./gulpfile.js ./
|
|
|
|
COPY ./tsconfig.json ./
|
|
|
|
COPY ./tsconfig.json ./
|
|
|
|
|
|
|
|
COPY ./.eslintrc.json ./
|
|
|
|
RUN npm install
|
|
|
|
RUN npm install
|
|
|
|
RUN npm install -g gulp
|
|
|
|
|
|
|
|
RUN npm install gulp
|
|
|
|
RUN npm install gulp
|
|
|
|
|
|
|
|
RUN npx eslint --config .eslintrc.json
|
|
|
|
|
|
|
|
RUN npx gulp
|
|
|
|
|
|
|
|
|
|
|
|
RUN gulp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM node
|
|
|
|
FROM node:14.14.0-alpine3.10
|
|
|
|
COPY --from=builder ./dist ./dist
|
|
|
|
COPY --from=builder ./dist ./dist
|
|
|
|
COPY --from=builder ./package*.json ./
|
|
|
|
COPY --from=builder ./package*.json ./
|
|
|
|
RUN npm install --production
|
|
|
|
RUN npm install --production
|
|
|
|