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

Add a Dockerfile to this repository #76

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Conversation

jiphex
Copy link
Contributor

@jiphex jiphex commented Dec 10, 2018

This commit adds a two-stage Docker build to this repository. The first
step uses an Alpine Linux based image to build the source of jo, and
then this stage is discarded (except for the compiled binary) and a new
Alpine based image is produced containing the jo binary.

The built image can then be executed as:

[user@host] $ docker run --rm -ti jo a=b
{"a": "b"}

This commit adds a two-stage Docker build to this repository. The first
step uses an Alpine Linux based image to build the source of jo, and
then this stage is discarded (except for the compiled binary) and a new
Alpine based image is produced containing the jo binary.

The built image can then be executed as:

    [user@host] $ docker run --rm -ti jo a=b
    {"a": "b"}
@jiphex
Copy link
Contributor Author

jiphex commented Dec 10, 2018

This is useful for me right now, but once the Alpine package is live then it's probably unnecessary. 🤷‍

@jpmens jpmens merged commit 66d285f into jpmens:master Dec 10, 2018
@jpmens
Copy link
Owner

jpmens commented Dec 10, 2018

Merged, thank you. I'm sure this is useful for some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants