Closed Swalloow closed 4 years ago
I encountered the same issue, looks like it is a result of https://github.com/nteract/commuter/commit/c03d5bb7359b347dcca0d9cd88842ed6525955f6
For some reason public/
was not moved into src/
. If it was left out on purpose then Dockerfile needs adjusting e.g.:
diff --git a/Dockerfile b/Dockerfile
index 6a0d082..76d10d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -68,7 +68,7 @@ WORKDIR /opt/app
COPY --from=build /opt/build/.next /opt/app/.next
COPY --from=build /opt/build/lib /opt/app/lib
-COPY --from=build /opt/build/public /opt/app/public
+COPY public /opt/app/public
COPY --from=dependencies /opt/build/node_modules /opt/app/node_modules
ENTRYPOINT ["/tini", "-g", "--"]
allows to build the image - not tested yet if it works, not sure if yarn
steps require the static files to be present, I have very limited experience with js.
@groodt FYI
Apologies. Yes, the Dockerfile was broken after the nextjs refactor.
Fix on the way here: https://github.com/nteract/commuter/pull/302
For some reason
public/
was not moved intosrc/
. If it was left out on purpose then Dockerfile needs adjusting e.g.:
next
doesn't want the public assets in src
. 👍
Hi, I was trying to build commuter Dockerfile using README - Deployment(Docker / Kubernetes). But its crashing with the error. (current master branch) (In
Step 22/26 : COPY --from=build /opt/build/lib /opt/app/lib
)