Skip to content

Commit a7d66b1

Browse files
committed
Some staticserver docker fixes and debugging
1 parent 53920a4 commit a7d66b1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
**/node_modules
3+
**/build
34
npm-debug.log
45
.env
56
files

daemons/staticserver/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN npm ci
1515

1616
#debug code, to be removed
1717
RUN ls -la
18+
RUN ls -la node_modules/@fails-components/config
19+
RUN cat node_modules/@fails-components/config/package.json
1820
RUN ls -la node_modules/@fails-components/config/dist
1921
#build the app
2022
ARG BASE_WORK
@@ -106,7 +108,7 @@ RUN ~/miniconda3/bin/conda run -n failscomponents jupyter lite build
106108
FROM nginx:stable AS staticserver-noassets
107109
ARG BASE_WORK
108110
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/appstable/build/ /usr/share/nginx/html/static/app
109-
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/lectureapp/build/ /usr/share/nginx/html/static/lecture
111+
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/lectureappstable/build/ /usr/share/nginx/html/static/lecture
110112
#workaround to remove old service worker
111113
RUN cp /usr/share/nginx/html/static/lecture/sw.js /usr/share/nginx/html/static/lecture/service-worker.js
112114

@@ -128,7 +130,7 @@ COPY --from=jupyter-build /usr/src/jupyterlite/jupyterLiteFailsOut/ /usr/share/n
128130
FROM nginx:stable
129131
ARG BASE_WORK
130132
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/appstable/build/ /usr/share/nginx/html/static/app
131-
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/lectureapp/build/ /usr/share/nginx/html/static/lecture
133+
COPY --from=build-stage ${BASE_WORK}/node_modules/@fails-components/lectureappstable/build/ /usr/share/nginx/html/static/lecture
132134
#workaround to remove old service worker
133135
RUN cp /usr/share/nginx/html/static/lecture/sw.js /usr/share/nginx/html/static/lecture/service-worker.js
134136

0 commit comments

Comments
 (0)