Spaces:
Runtime error
Runtime error
Karan Goel
commited on
Commit
ยท
f9144b3
1
Parent(s):
d2848a0
update
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -5,8 +5,6 @@ FROM python:3.9
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
RUN chmod 777 /code
|
8 |
-
RUN echo $SPACE_AUTHOR_NAME
|
9 |
-
RUN echo $SPACE_ID
|
10 |
|
11 |
# Install node >= 18.0.0 and npm
|
12 |
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
@@ -46,10 +44,11 @@ ENV MEERKAT_CONFIG=$HOME/config.yaml
|
|
46 |
|
47 |
COPY --chown=user ./tutorial.py $HOME/tutorial.py
|
48 |
|
49 |
-
|
50 |
-
|
|
|
51 |
|
52 |
WORKDIR $HOME
|
53 |
# CMD ["uvicorn", "tutorial:page", "--host", "0.0.0.0", "--port", "7860"]
|
54 |
|
55 |
-
|
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
RUN chmod 777 /code
|
|
|
|
|
8 |
|
9 |
# Install node >= 18.0.0 and npm
|
10 |
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
|
44 |
|
45 |
COPY --chown=user ./tutorial.py $HOME/tutorial.py
|
46 |
|
47 |
+
ENV SPACE_AUTHOR_NAME=krandiash
|
48 |
+
ENV SPACE_REPO_NAME=test-spaces
|
49 |
+
# RUN mk run $HOME/tutorial.py --host 0.0.0.0 --api-port 7860
|
50 |
|
51 |
WORKDIR $HOME
|
52 |
# CMD ["uvicorn", "tutorial:page", "--host", "0.0.0.0", "--port", "7860"]
|
53 |
|
54 |
+
CMD ["mk", "run", "/home/user/tutorial.py", "--host", "0.0.0.0", "--api-port", "7860"]
|