Spaces:
Running

Interlink-bot / Dockerfile
haqq1111's picture
Update Dockerfile
f4b7c2f verified
Raw History Blame Contribute Delete
292 Bytes
FROM python:3.10-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD python3 -m http.server 7860 & echo '2' | python bot.py