Files
gptchat/Dockerfile
2026-04-01 17:02:48 +10:00

23 lines
414 B
Docker

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -s /bin/bash appuser
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chown -R appuser:appuser /app
USER appuser
EXPOSE 8084
CMD ["python", "main.py", "--enable-gui", "--port", "8084", "--password", "admin"]