perf: remove source code volume mount, collectstatic at build time
All checks were successful
Deploy to Server / deploy (push) Successful in 1m58s
All checks were successful
Deploy to Server / deploy (push) Successful in 1m58s
This commit is contained in:
@@ -16,6 +16,9 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
COPY . /app/
|
||||
COPY .env /app/
|
||||
|
||||
# 收集静态文件(build 时执行,避免每次启动都跑)
|
||||
RUN python manage.py collectstatic --noinput || true
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 8876
|
||||
|
||||
|
||||
Reference in New Issue
Block a user