Spaces:
Sleeping
Sleeping
Commit ·
b9e4744
1
Parent(s): df5ec7a
nginx start with cfg file.
Browse files- Dockerfile +1 -1
- scripts/start.sh +2 -1
Dockerfile
CHANGED
|
@@ -16,7 +16,7 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
# 复制 Nginx 配置
|
| 19 |
-
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
| 20 |
|
| 21 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
# 复制 Nginx 配置
|
| 19 |
+
#COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
| 20 |
|
| 21 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
scripts/start.sh
CHANGED
|
@@ -6,7 +6,8 @@
|
|
| 6 |
|
| 7 |
echo "Server beginning ..."
|
| 8 |
# 启动 Nginx
|
| 9 |
-
nginx -g "daemon off;"
|
|
|
|
| 10 |
# --workers 3 --log-level info
|
| 11 |
uvicorn app:app --reload --host 0.0.0.0 --port 8000
|
| 12 |
echo "Server started ..."
|
|
|
|
| 6 |
|
| 7 |
echo "Server beginning ..."
|
| 8 |
# 启动 Nginx
|
| 9 |
+
#nginx -g "daemon off;"
|
| 10 |
+
nginx -c "./nginx/nginx.conf"
|
| 11 |
# --workers 3 --log-level info
|
| 12 |
uvicorn app:app --reload --host 0.0.0.0 --port 8000
|
| 13 |
echo "Server started ..."
|