Chatfly / Dockerfile
Opera8's picture
Create Dockerfile
7422d2d verified
raw
history blame contribute delete
435 Bytes
FROM python:3.9-slim
RUN apt-get update && \
apt-get install -y git ffmpeg && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR /app
CMD ["/bin/bash", "-c", "git clone https://$GITHUB_TOKEN@github.com/Hamed744/Chatfly.git . && pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt && python app.py"]