AFFiNE/.github/deployment/Dockerfile-venus

21 lines
534 B
Plaintext
Raw Normal View History

2022-08-02 19:52:08 +03:00
FROM node:16-alpine as builder
WORKDIR /app
COPY . .
2022-08-04 11:21:20 +03:00
RUN apk add g++ make python3 git zlib
2022-08-02 19:52:08 +03:00
RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus
FROM node:16-alpine as relocate
WORKDIR /app
COPY --from=builder /app/dist/apps/venus ./dist
2022-08-04 10:35:14 +03:00
COPY --from=builder /app/.github/deployment/Caddyfile-venus ./Caddyfile
2022-08-02 19:52:08 +03:00
RUN rm ./dist/*.txt
# =============
# venus image
# =============
FROM caddy:2.4.6-alpine as venus
WORKDIR /app
COPY --from=relocate /app .
EXPOSE 80
CMD ["caddy", "run"]