Files
kubevela/examples/testapp/Dockerfile
2020-10-30 19:07:00 -07:00

15 lines
260 B
Docker

FROM mhart/alpine-node:12
WORKDIR /app
COPY package.json ./
RUN npm install
RUN npm ci --prod
# Then we copy over the modules from above onto a `slim` image
FROM mhart/alpine-node:slim-12
WORKDIR /app
COPY --from=0 /app .
COPY . .
CMD ["node", "server.js"]