Skip to content
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

Cleaning up Dockerfile, adding one for Mongo #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linsomniac
Copy link

I had problems with the provided Dockerfile, so I reworked it, tested it
out, and switched it to using a "builder pattern" instead of trying to
clean up after doing the build.

The "Dockerfile" now builds in the "golang:alpine" Docker image, and
builds an image using the base "alpine:latest" image for a smaller
resulting image.

I also included a "Dockerfile-mongodb" that similarly uses the "builder
pattern" to build based on a MongoDB base Docker image, and then sets
itself up to run MailHog with MongoDB.

I had problems with the provided Dockerfile, so I reworked it, tested it
out, and switched it to using a "builder pattern" instead of trying to
clean up after doing the build.

The "Dockerfile" now builds in the "golang:alpine" Docker image, and
builds an image using the base "alpine:latest" image for a smaller
resulting image.

I also included a "Dockerfile-mongodb" that similarly uses the "builder
pattern" to build based on a MongoDB base Docker image, and then sets
itself up to run MailHog with MongoDB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants