Spaces:
Running
Running
Commit ·
f50c668
1
Parent(s): fe40f6e
Committed with Git-Upload
Browse files- Dockerfile +1 -0
- app.js +4 -4
Dockerfile
CHANGED
|
@@ -3,5 +3,6 @@ EXPOSE 8083 7860 3000
|
|
| 3 |
# Ensure directories and files are writable by everyone
|
| 4 |
RUN chmod -R 777 /app/public /app/out /app/uploads || true \
|
| 5 |
&& chmod 666 /app/index.html || true
|
|
|
|
| 6 |
# Run as root (default in most base images, but ensure no USER directive is set)
|
| 7 |
ENTRYPOINT ["npm", "start"]
|
|
|
|
| 3 |
# Ensure directories and files are writable by everyone
|
| 4 |
RUN chmod -R 777 /app/public /app/out /app/uploads || true \
|
| 5 |
&& chmod 666 /app/index.html || true
|
| 6 |
+
COPY app.js .
|
| 7 |
# Run as root (default in most base images, but ensure no USER directive is set)
|
| 8 |
ENTRYPOINT ["npm", "start"]
|
app.js
CHANGED
|
@@ -611,10 +611,10 @@ app.get('/', (req, res) => {
|
|
| 611 |
res.sendFile(indexFile);
|
| 612 |
});
|
| 613 |
|
| 614 |
-
writeFileSync(
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
);
|
| 618 |
|
| 619 |
export default app;
|
| 620 |
|
|
|
|
| 611 |
res.sendFile(indexFile);
|
| 612 |
});
|
| 613 |
|
| 614 |
+
// writeFileSync(
|
| 615 |
+
// indexFile,
|
| 616 |
+
// readFileSync(indexFile).toString().replace('___ORACLE_API_BASE___', oracleAPI)
|
| 617 |
+
// );
|
| 618 |
|
| 619 |
export default app;
|
| 620 |
|