Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +3 -1
- hf_config.json +1 -0
Dockerfile
CHANGED
|
@@ -25,6 +25,7 @@ RUN test -f package.json && test -f package-lock.json
|
|
| 25 |
|
| 26 |
# Copy the source files
|
| 27 |
COPY . .
|
|
|
|
| 28 |
|
| 29 |
# Install mocha
|
| 30 |
RUN npm i -g npm@latest
|
|
@@ -68,9 +69,10 @@ RUN mkdir -p /opt/puter/app
|
|
| 68 |
WORKDIR /opt/puter/app
|
| 69 |
|
| 70 |
# Copy built artifacts and necessary files from the build stage
|
| 71 |
-
|
| 72 |
COPY --from=build /app/node_modules ./node_modules
|
| 73 |
COPY . .
|
|
|
|
| 74 |
|
| 75 |
# Set permissions
|
| 76 |
RUN chown -R node:node /opt/puter/app
|
|
|
|
| 25 |
|
| 26 |
# Copy the source files
|
| 27 |
COPY . .
|
| 28 |
+
COPY --from=build /app/src/gui/dist ./src/gui/dist
|
| 29 |
|
| 30 |
# Install mocha
|
| 31 |
RUN npm i -g npm@latest
|
|
|
|
| 69 |
WORKDIR /opt/puter/app
|
| 70 |
|
| 71 |
# Copy built artifacts and necessary files from the build stage
|
| 72 |
+
# Removed original COPY instruction
|
| 73 |
COPY --from=build /app/node_modules ./node_modules
|
| 74 |
COPY . .
|
| 75 |
+
COPY --from=build /app/src/gui/dist ./src/gui/dist
|
| 76 |
|
| 77 |
# Set permissions
|
| 78 |
RUN chown -R node:node /opt/puter/app
|
hf_config.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"protocol": "https",
|
| 8 |
"allow_all_host_values": true,
|
| 9 |
"origin": "https://gionuibk-puter-deploy.hf.space:7860",
|
|
|
|
| 10 |
"api_base_url": "https://gionuibk-puter-deploy.hf.space:7860",
|
| 11 |
"services": {
|
| 12 |
"database": {
|
|
|
|
| 7 |
"protocol": "https",
|
| 8 |
"allow_all_host_values": true,
|
| 9 |
"origin": "https://gionuibk-puter-deploy.hf.space:7860",
|
| 10 |
+
"experimental_no_subdomain": true,
|
| 11 |
"api_base_url": "https://gionuibk-puter-deploy.hf.space:7860",
|
| 12 |
"services": {
|
| 13 |
"database": {
|