-
Notifications
You must be signed in to change notification settings - Fork 78
fix docker #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix docker #198
Conversation
README.md
Outdated
| ```bash | ||
| cd docker | ||
| docker build -f ./docker/Dockerfile -t local_lab_env . | ||
| docker build -f ./Dockerfile -t local_lab_env . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This instructs the user to build the outermost docker file, which is not required. I would suggest reverting this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is duplicated. One of the following works.
cd docker
docker build -f ./Dockerfile -t local_lab_env .
docker build -f ./docker/Dockerfile -t local_lab_env .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I would then go for:
- remove the cd
- Use the original instruction
Reasoning behind this is that then the context of the Dockerfile is the root of the repo
| RUN curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh && \ | ||
| bash nodesource_setup.sh && \ | ||
| apt install nodejs | ||
| apt -y install nodejs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder how i missed this.
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
I am trying to build the Docker image with the Dockerfile in the docker/ directory. There are some problems, and I am still working on them.
It works now.