Base structure #2

This commit is contained in:
2022-11-24 02:12:52 +01:00
parent 261627570d
commit d8365128fc
20 changed files with 1528 additions and 41 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:18-alpine AS builder
ENV NODE_ENV=production
COPY build/package*.json ./
RUN apk add --no-cache python3 make g++
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"]