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.

20 lines
335 B
Docker

FROM node AS builder
4 years ago
WORKDIR /
COPY ./src /src
COPY ./package*.json ./
COPY ./gulpfile.js ./
COPY ./tsconfig.json ./
4 years ago
RUN npm install
RUN npm install -g gulp
RUN npm install gulp
4 years ago
RUN gulp
FROM node
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"]