Spaces:
Runtime error
Runtime error
atikur-rabbi
commited on
Commit
•
01b152a
1
Parent(s):
e54bb6d
up
Browse files- Dockerfile +1 -0
- scripts/config.sh +1 -1
Dockerfile
CHANGED
@@ -31,6 +31,7 @@ RUN mkdir easy-diffusion
|
|
31 |
COPY . /home/huggingface/easy-diffusion
|
32 |
|
33 |
EXPOSE 9000
|
|
|
34 |
|
35 |
RUN chown -R huggingface /home/huggingface/easy-diffusion
|
36 |
RUN chmod -R u+x /home/huggingface/easy-diffusion
|
|
|
31 |
COPY . /home/huggingface/easy-diffusion
|
32 |
|
33 |
EXPOSE 9000
|
34 |
+
EXPOSE $PORT
|
35 |
|
36 |
RUN chown -R huggingface /home/huggingface/easy-diffusion
|
37 |
RUN chmod -R u+x /home/huggingface/easy-diffusion
|
scripts/config.sh
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
# export port to environment variable SD_UI_BIND_PORT
|
4 |
# so that it can be used by other scripts
|
5 |
|
6 |
-
export SD_UI_BIND_PORT=9990||${
|
|
|
3 |
# export port to environment variable SD_UI_BIND_PORT
|
4 |
# so that it can be used by other scripts
|
5 |
|
6 |
+
export SD_UI_BIND_PORT=9990||${PORT}
|