zym1 commited on
Commit
faa93ed
·
verified ·
1 Parent(s): c50496f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -32
Dockerfile CHANGED
@@ -1,34 +1,7 @@
1
- # Multi-stage build for gcli2api
2
- FROM python:3.13-slim as base
3
 
4
- # Set environment variables
5
- ENV PYTHONUNBUFFERED=1 \
6
- PYTHONDONTWRITEBYTECODE=1 \
7
- PIP_NO_CACHE_DIR=1 \
8
- PIP_DISABLE_PIP_VERSION_CHECK=1 \
9
- TZ=Asia/Shanghai
10
 
11
- # Install tzdata and set timezone
12
- RUN apt-get update && \
13
- apt-get install -y --no-install-recommends tzdata && \
14
- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
15
- echo "Asia/Shanghai" > /etc/timezone && \
16
- apt-get clean && \
17
- rm -rf /var/lib/apt/lists/*
18
-
19
- WORKDIR /app
20
-
21
- # Copy only requirements first for better caching
22
- COPY requirements.txt .
23
-
24
- # Install Python dependencies
25
- RUN pip install --no-cache-dir -r requirements.txt
26
-
27
- # Copy application code
28
- COPY . .
29
-
30
- # Expose port
31
- EXPOSE 7861
32
-
33
- # Default command
34
- CMD ["python", "web.py"]
 
1
+ FROM ghcr.io/su-kaka/gcli2api:latest
 
2
 
3
+ ENV HOST=0.0.0.0
4
+ ENV PORT=7860
5
+ ENV CREDENTIALS_DIR=/app/creds
 
 
 
6
 
7
+ EXPOSE 7860