-
Notifications
You must be signed in to change notification settings - Fork 58
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
Added docker #186
base: master
Are you sure you want to change the base?
Added docker #186
Conversation
Awesome 👏 |
yay |
Are you sure it's a good practice to |
@emerick42 Good point! |
Do you know why the container is larger? |
Yes! Docker works same that git. Each statement (RUN, ENV, EXPOSE, CMD, ....) is committed. In fact, the first Dockerfile, add dependencies in container but the dependencies are removed in same statement. You can use |
Ok, I got it. I think the second option is better, at least to respect Docker's way of doing things. Did you check on other official images if they were doing optimizations like this one? |
The last version is better to rebuild quickly a new container. It's ~230 MB additional. |
I purpose to add docker to build quickly the Curvytron server!
To build:
To run:
Also, you can add this repository in Docker Hub to use
docker pull
.Kiss 💋