fix build
This commit is contained in:
parent
88a0d63198
commit
7c3cdfafce
@ -33,7 +33,7 @@ COPY . .
|
|||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install musl-dev nginx \
|
&& apt-get -y install musl-dev nginx \
|
||||||
&& mkdir -p /etc/nginx \
|
&& mkdir -p /etc/nginx \
|
||||||
&& cp -f nginx.conf /etc/nginx/nginx.conf \
|
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \
|
||||||
&& pip install -r requirements.txt \
|
&& pip install -r requirements.txt \
|
||||||
&& python_ver=$(python3 -V | awk '{print $2}') \
|
&& python_ver=$(python3 -V | awk '{print $2}') \
|
||||||
&& echo "/app/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \
|
&& echo "/app/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \
|
||||||
|
4
start.sh
4
start.sh
@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
umask ${UMASK}
|
umask ${UMASK}
|
||||||
|
# 使用 `envsubst` 将模板文件中的 ${NGINX_PORT} 替换为实际的环境变量值
|
||||||
|
envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
|
||||||
|
# 下载浏览器内核
|
||||||
playwright install chromium
|
playwright install chromium
|
||||||
|
# 启动后端服务
|
||||||
python3 app/main.py
|
python3 app/main.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user