13 lines
366 B
Docker
13 lines
366 B
Docker
FROM node:18-alpine AS builder
|
|
ENV NODE_ENV=production
|
|
# RUN apk add --no-cache python3 make g++
|
|
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" ]
|
|
CMD ["node", "--enable-source-maps", "index.js"] |