Conversation
After testing on Docker Desktop, I had to make these modifications to get the Docker Image for go-consequences running.
HenryGeorgist
approved these changes
Dec 18, 2024
| apt -y install wget &&\ | ||
| wget https://golang.org/dl/go1.19.5.linux-amd64.tar.gz -P / &&\ | ||
| tar -xvzf /go1.19.5.linux-amd64.tar.gz -C / &&\ | ||
| apt -y install vim &&\ |
Contributor
There was a problem hiding this comment.
vim isnt necessary for the builder
| WORKDIR /app/go-consequences | ||
| RUN go mod download | ||
| RUN go mod tidy | ||
| RUN go build -o main . |
Contributor
There was a problem hiding this comment.
ill have to research this tag now.
| RUN go build -o main . | ||
|
|
||
| # Stage 2: Production | ||
| FROM ghcr.io/osgeo/gdal:ubuntu-full-3.8.3 AS prod |
Contributor
There was a problem hiding this comment.
this all looks much better, not doing build essential, and pulling the libraries you actually need. super cool great job. will have to test it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After testing on Docker Desktop, I had to make these modifications to get the Docker Image for go-consequences running.