Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -3,7 +3,9 @@ FROM node:19 as viewer-frontend
|
|
3 |
|
4 |
WORKDIR /app
|
5 |
RUN git clone https://github.com/nerfstudio-project/nerfstudio .
|
|
|
6 |
RUN git checkout 6d51af1a24d692d073a9e0cda06278b6a9d44818
|
|
|
7 |
RUN sed -i "s|websocket_url: 'ws://localhost:7007',|websocket_url: \`\${window.location.protocol === 'https:' ? 'wss' : 'ws'}://\${window.location.host}/server\`,|g" nerfstudio/viewer/app/src/reducer.js
|
8 |
|
9 |
RUN npm install --global yarn --force
|
|
|
3 |
|
4 |
WORKDIR /app
|
5 |
RUN git clone https://github.com/nerfstudio-project/nerfstudio .
|
6 |
+
# pin nerfstudio to specific commit
|
7 |
RUN git checkout 6d51af1a24d692d073a9e0cda06278b6a9d44818
|
8 |
+
# quick hack to point front-end to wss and current server proxied her under /server
|
9 |
RUN sed -i "s|websocket_url: 'ws://localhost:7007',|websocket_url: \`\${window.location.protocol === 'https:' ? 'wss' : 'ws'}://\${window.location.host}/server\`,|g" nerfstudio/viewer/app/src/reducer.js
|
10 |
|
11 |
RUN npm install --global yarn --force
|