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.
18 lines
283 B
Docker
18 lines
283 B
Docker
FROM node AS builder
|
|
WORKDIR /
|
|
|
|
COPY ./src /src
|
|
COPY ./package*.json ./
|
|
RUN npm install
|
|
RUN npm install -g gulp
|
|
RUN npm install gulp
|
|
|
|
RUN gulp
|
|
|
|
FROM node
|
|
COPY --from=builder /dist .
|
|
COPY --from=builder ./package*.json ./
|
|
RUN npm install --production
|
|
EXPOSE 4000
|
|
CMD ["npm", "start"]
|