eu.astrogd.white-leopard/Dockerfile

14 lines
376 B
Docker
Raw Normal View History

2022-11-24 02:12:52 +01:00
FROM node:18-alpine AS builder
ENV NODE_ENV=production
2022-11-24 12:29:52 +01:00
# RUN apk add --no-cache python3 make g++
2022-11-24 02:12:52 +01:00
COPY build/package*.json ./
RUN npm install --omit=dev
FROM node:18-alpine AS app
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY --from=builder node_modules ./node_modules
COPY build/ .
VOLUME [ "/usr/src/app/data" ]
2022-11-24 22:59:23 +01:00
EXPOSE 80
2022-11-24 02:12:52 +01:00
CMD ["node", "--enable-source-maps", "index.js"]