mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-05 15:43:11 +03:00
332cd3b380
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
12 lines
416 B
Docker
12 lines
416 B
Docker
FROM openresty/openresty:1.25.3.1-0-buster
|
|
WORKDIR /app
|
|
COPY ./packages/frontend/web/dist ./dist
|
|
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;"]
|