AFFiNE/.github/deployment/Dockerfile-affine

21 lines
550 B
Plaintext
Raw Normal View History

2022-08-04 11:17:46 +03:00
FROM node:16-alpine as builder
WORKDIR /app
COPY . .
2022-08-04 11:26:23 +03:00
RUN apk add g++ make python3 git libpng-dev
2022-08-04 11:17:46 +03:00
RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:local
FROM node:16-alpine as relocate
WORKDIR /app
COPY --from=builder /app/dist/apps/ligo-virgo ./dist
2022-08-04 12:13:24 +03:00
COPY --from=builder /app/.github/deployment/Caddyfile-affine ./Caddyfile
2022-08-04 11:17:46 +03:00
RUN rm ./dist/*.txt
# =============
2022-08-04 11:22:15 +03:00
# AFFiNE image
2022-08-04 11:17:46 +03:00
# =============
2022-08-04 11:22:15 +03:00
FROM caddy:2.4.6-alpine as AFFiNE
2022-08-04 11:17:46 +03:00
WORKDIR /app
COPY --from=relocate /app .
EXPOSE 3000
CMD ["caddy", "run"]