tailwind-nextjs-blog/Dockerfile
Ivan Li 079ae47a30
Some checks failed
continuous-integration/drone/push Build is failing
build: 修复依赖安装问题。
2022-10-07 22:10:26 +08:00

14 lines
310 B
Docker

FROM node:16-alpine as base
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package-lock.json package.json ./
RUN npm ci --no-audit --force
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 -- --port 80