Initial commit

This commit is contained in:
Package Directory
2023-09-16 12:16:57 +02:00
commit ae0e03df34
20 changed files with 6586 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:lts-alpine AS builder
ENV NODE_ENV=production
# RUN apk add --no-cache python3 make g++
COPY dist/package*.json ./
RUN npm install --omit=dev
FROM node:lts-alpine AS app
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY --from=builder node_modules ./node_modules
COPY dist/ .
VOLUME [ "/usr/src/app/save" ]
EXPOSE 80
CMD ["node", "--enable-source-maps", "index.js"]