first-commit.
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
2022-07-16 14:29:06 +08:00
parent bf8823b998
commit 032a2285ec
10 changed files with 1593 additions and 1301 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:16-alpine as base
# RUN apk add --no-cache make gcc g++ python3
WORKDIR /app
COPY package-lock.json package.json ./
RUN npm ci --no-audit --legacy-peer-deps
COPY . .
FROM node:16-alpine as release
WORKDIR /app
COPY --from=base /app ./
RUN npm run build &&\
npm prune --omit dev
EXPOSE 80
CMD npm run serve -- -H 0.0.0.0 -p 80