Spaces:
Sleeping
Sleeping
fix
Browse files- Dockerfile +13 -1
Dockerfile
CHANGED
|
@@ -1,8 +1,20 @@
|
|
| 1 |
FROM oneflowinc/onediff:cu118
|
| 2 |
|
| 3 |
ARG LIVE_XL_TAR=live_xl_rel_ubuntu-22.04_202403111616.tar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
RUN wget --quiet https://github.com/jackalcooper/live_xl/releases/download/latest/${LIVE_XL_TAR} && \
|
| 5 |
tar xvf ${LIVE_XL_TAR}
|
| 6 |
ENV PORT=7860 SECRET_KEY_BASE="Z/VeN8hw0cQruiL3YyWG52IPq+hnG9Ucj1RuW0263Iddmd8f+j7i/b7NCs1fiLCx"
|
| 7 |
|
| 8 |
-
|
|
|
|
| 1 |
FROM oneflowinc/onediff:cu118
|
| 2 |
|
| 3 |
ARG LIVE_XL_TAR=live_xl_rel_ubuntu-22.04_202403111616.tar
|
| 4 |
+
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
|
| 7 |
+
RUN mkdir -p /data
|
| 8 |
+
RUN chmod 777 /data
|
| 9 |
+
|
| 10 |
+
# The Space container runs with user ID 1000
|
| 11 |
+
RUN useradd -m -u 1000 user
|
| 12 |
+
ENV HOME=/home/user
|
| 13 |
+
|
| 14 |
+
USER user
|
| 15 |
+
|
| 16 |
RUN wget --quiet https://github.com/jackalcooper/live_xl/releases/download/latest/${LIVE_XL_TAR} && \
|
| 17 |
tar xvf ${LIVE_XL_TAR}
|
| 18 |
ENV PORT=7860 SECRET_KEY_BASE="Z/VeN8hw0cQruiL3YyWG52IPq+hnG9Ucj1RuW0263Iddmd8f+j7i/b7NCs1fiLCx"
|
| 19 |
|
| 20 |
+
RUN live_xl/bin/server
|