AFFiNE/.github/deployment/Dockerfile

13 lines
263 B
Docker
Raw Normal View History

2022-12-20 10:22:36 +03:00
FROM node:16-alpine as relocate
WORKDIR /app
COPY ./packages/app/out ./dist
COPY ./.github/deployment/Caddyfile ./Caddyfile
2022-12-20 10:22:36 +03:00
FROM caddy:2.6.2-alpine
ARG API_SERVER
WORKDIR /app
COPY --from=relocate /app .
2022-12-20 10:22:36 +03:00
EXPOSE 80
ENV API_SERVER=$API_SERVER
CMD ["caddy", "run"]