mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-05 16:02:12 +00:00
chore: update Dockerfile to include server configuration variables and copy the _public directory for improved asset management
This commit is contained in:
1 parent
7683311758
commit
7b766c0322
1 file changed
+5
-1
+5
-1
@@ -41,7 +41,10 @@ FROM python:3.13-alpine
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
TZ=Asia/Shanghai \
|
||||
VIRTUAL_ENV=/opt/venv
|
||||
VIRTUAL_ENV=/opt/venv \
|
||||
SERVER_HOST=0.0.0.0 \
|
||||
SERVER_PORT=8000 \
|
||||
SERVER_WORKERS=1
|
||||
|
||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
|
||||
@@ -60,6 +63,7 @@ COPY --from=builder /opt/venv /opt/venv
|
||||
|
||||
COPY config.defaults.toml ./
|
||||
COPY app ./app
|
||||
COPY _public ./_public
|
||||
COPY main.py ./
|
||||
COPY scripts ./scripts
|
||||
|
||||
|
||||
Reference in new issue
Block a user