Chip_Router / Dockerfile
TechAvenger's picture
Upload 7 files
0240937 verified
raw
history blame contribute delete
515 Bytes
FROM python:3.9-slim
ENV PYTHONUNBUFFERED=1
# Install tkinter system libraries
RUN apt-get update && apt-get install -y \
python3-tk \
tk \
tk-dev \
libtk8.6 \
&& rm -rf /var/lib/apt/lists/*
# Create user
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chown -R user:user /app
USER user
EXPOSE 7860
CMD ["python", "app.py"]