onediff-demo / Dockerfile
J5Tsai's picture
fix
f2e77ce
raw
history blame
496 Bytes
FROM oneflowinc/onediff:cu118
ARG LIVE_XL_TAR=live_xl_rel_ubuntu-22.04_202403111616.tar
EXPOSE 7860
RUN mkdir -p /data
RUN chmod 777 /data
# The Space container runs with user ID 1000
RUN useradd -m -u 1000 user
ENV HOME=/home/user
USER user
RUN wget --quiet https://github.com/jackalcooper/live_xl/releases/download/latest/${LIVE_XL_TAR} && \
tar xvf ${LIVE_XL_TAR}
ENV PORT=7860 SECRET_KEY_BASE="Z/VeN8hw0cQruiL3YyWG52IPq+hnG9Ucj1RuW0263Iddmd8f+j7i/b7NCs1fiLCx"
RUN live_xl/bin/server