Skip to content

Conversation

@shaoyaoqian
Copy link
Contributor

@shaoyaoqian shaoyaoqian commented Jul 12, 2024

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.

README.md Outdated
```bash
cd docker
docker build -f ./docker/Dockerfile -t local_lab_env .
docker build -f ./Dockerfile -t local_lab_env .
Copy link
Owner

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.

Copy link
Contributor Author

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 .

Copy link
Owner

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:

  1. remove the cd
  2. 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
Copy link
Owner

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.

shaoyaoqian and others added 2 commits September 27, 2024 10:52
@jorgensd jorgensd merged commit a520bf4 into jorgensd:main Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants