Skip to content

Conversation

@jlgutenson
Copy link

After testing on Docker Desktop, I had to make these modifications to get the Docker Image for go-consequences running.

After testing on Docker Desktop, I had to make these modifications to get the Docker Image for go-consequences running.
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 &&\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim isnt necessary for the builder

WORKDIR /app/go-consequences
RUN go mod download
RUN go mod tidy
RUN go build -o main .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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.

2 participants