mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 13:51:56 +03:00
14 lines
260 B
Docker
14 lines
260 B
Docker
FROM node:16-alpine as relocate
|
|
WORKDIR /app
|
|
COPY ./apps/web/out ./dist
|
|
COPY ./.github/deployment/Caddyfile ./Caddyfile
|
|
|
|
FROM caddy:2.6.2-alpine
|
|
ARG API_SERVER
|
|
WORKDIR /app
|
|
COPY --from=relocate /app .
|
|
|
|
EXPOSE 80
|
|
ENV API_SERVER=$API_SERVER
|
|
CMD ["caddy", "run"]
|