GeoSales-Evolution / self-deployable-docker

Docker repo capable of deploying itself... or something like that
MIT License
2 stars 2 forks source link

Multistep docker image creation #10

Closed jeffque closed 1 year ago

jeffque commented 1 year ago

It was needed to update webrick to the tipping edge of the repository. For this, apk add git was needed to give this hability to deal with the gem, as evidenced by the Dockerfile change in #9:

 EXPOSE 8000
+RUN apk update && apk add git
 RUN bundle config --global frozen 1

If we could add this as a step, and copy the gem directory fetched by the first steps into the finel image, it would be great.

Also, maybe putting gems in the non-standard /app/.gems/ dir could help, this could lead to more maintainability

jeffque commented 1 year ago

Solved by #11