terminal / Dockerfile
ghostdrive1's picture
Upload 8 files
52dd3c8 verified
Raw
History Blame Contribute Delete
493 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
bash coreutils nano vim-tiny htop git curl wget less \
man-db procps net-tools iputils-ping ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860 \
SHELL=/bin/bash \
TERM=xterm-256color \
COLUMNS=80 \
ROWS=24
EXPOSE 7860
VOLUME ["/data"]
CMD ["python", "app.py"]