Docker image build failed #1716
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1716
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I try to build manually the docker image for the frontend using:
However it fails in the step 5:
Docker image buld failedto Docker image build failedYou need to build the frontend first with
yarn run build
. The build fails in your case because it cannot find the built frontend files.I think it would be good to add a Docker multistage build for this matter. So you don't have to install node.js and yarn on the host machine but build it in a separate stage and copy it over. I'll take a look at this and open a PR for this!
Sounds like aa good idea!
With #113 merged, the frontend Dockerfile now has a build stage which makes it possible to build the docker image without needing to build the frontend first.