mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-04 10:53:05 +03:00
14 lines
506 B
Docker
14 lines
506 B
Docker
FROM openresty/openresty:1.25.3.2-0-buster
|
|
WORKDIR /app
|
|
COPY ./packages/frontend/web/dist ./dist
|
|
COPY ./packages/frontend/admin/dist ./admin
|
|
COPY ./packages/frontend/mobile/dist ./mobile
|
|
COPY ./.github/deployment/front/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
|
|
COPY ./.github/deployment/front/affine.nginx.conf /etc/nginx/conf.d/affine.nginx.conf
|
|
|
|
RUN mkdir -p /var/log/nginx && \
|
|
rm /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 8080
|
|
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]
|