加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 690 Bytes
一键复制 编辑 原始数据 按行查看 历史
FarmerChillax 提交于 2022-10-09 16:11 . restore: restore nginx env setting.
FROM node:18 AS build
WORKDIR /saltedfish-web
COPY . /saltedfish-web
RUN \
alias npm="npm --registry=https://registry.npmmirror.com"; \
rm ./node_modules -rf; \
rm ./dist -rf; \
npm install && \
npm run build-ext-video-player && \
npm run build-ext-demo && \
npm run build
FROM nginx:latest
ENV \
MAX_BODY_SIZE=8192m \
SERVER_NAME=_ \
HTTP_PORT=80
COPY --from=build /saltedfish-web/dist /var/www/saltefish-web
COPY ./conf/web.conf /etc/nginx/conf.d/saltedfish-web.conf.template
CMD rm /etc/nginx/conf.d/*.conf && \
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < /etc/nginx/conf.d/saltedfish-web.conf.template > /etc/nginx/conf.d/saltedfish-web.conf && \
nginx -g "daemon off;"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化