morphus/Dockerfile

27 lines
412 B
Docker
Raw Normal View History

2021-11-17 14:36:58 +00:00
FROM node:16-alpine as builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm exec pnpm i --frozen-lockfile
COPY . .
RUN npm exec pnpm run build
RUN ls -hal
FROM node:16-alpine
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm exec pnpm i --frozen-lockfile --prod
COPY --from=builder /app/dist ./dist
2021-11-17 16:25:54 +00:00
ENV LOCAL_ASSETS=/data
2021-11-17 14:36:58 +00:00
ENV ADDRESS=0.0.0.0
2021-12-02 16:58:16 +00:00
ENV PORT=80
2021-11-17 15:20:50 +00:00
2021-11-17 14:36:58 +00:00
EXPOSE 80
2021-11-17 15:20:50 +00:00
CMD [ "node", "." ]