Open ibnesayeed opened 7 years ago
While we are at it, the new CLI syntax uses docker image build
in place of docker build
and docker container run
in place of docker run
. We might want to accommodate this new change in the documentation as well.
@ibnesayeed You are correct, there is this inconsistency. Fixing it only requires adjustments to the README but the error has been propagated across other branches.
Since you are familiar with the new CLI syntax, can you provide a PR to fix the docker instructions?
Why are we not using node
's official docker image and installing it manually in the ubuntu
base image?
@ibnesayeed That, too, would be a potential optimization.
Although, I did an overhaul of the Dockerfile to make it more readable, maintainable, and cacheable. The later should yield in a faster build (especially rebuilds). For now, I did not make it inherit from node
(but I did fix the version of ubuntu
image) because that might cause some issues which I can't easily test as the working code is in a different branch than the master
. I am creating a PR that can go in the master
branch which you can cherry-pick in other branches as well, if you want. We can later modify it to inherit from node
after testing.
Oops, I didn't realize that I was not working on a fork, but the main repo directly. So my commits were directly pushed to the master branch. Following are the relevant commits of which the last two are about the Dockerfile while other two are for the documentation.
The README file used the name
archthumb
when building the image while usesalsummarization
at run time. Both should be the same in the documentation. Perhaps other branches of the code have the same issue.