Open mtozlu opened 2 years ago
@mtozlu Have you try running the final bin with Google Distroless images?
FROM gcr.io/distroless/nodejs:16
@gaby No. But it looks cool. Should I switch to it? What are the benefits over alpine?
@gaby No. But it looks cool. Should I switch to it? What are the benefits over alpine?
If it runs fine, I would say yes.
Dockerization of http-server
Relevant issues
Closes #724
Contributor checklist
--help
outputmaster
branchMaintainer checklist
Maintainers will do the building, tagging and pushing docker images. These instructions are only for maintainers to release a new version in docker hub;
Building and Tagging the Docker Image
docker build -t {your-username}/http-server:{new-version} -t {your-username}/http-server:latest .
in project root folder. This builds and tags the docker image with "latest" tag and also with the version you provide.Pushing the Docker Image
docker push {your-username}/http-server:{new-version}
docker push {your-username}/http-server:latest
Note: I already have the http-server images built in docker hub in my own repository (which is tozlu/http-server), if you would like to maintain docker images in your own repository, please change README and the build/push scripts above to reflect your username for docker hub.