Skip to content

Conversation

@chrishalbert
Copy link

This pull request includes a Dockerfile, which is intended to be used only for development purposes. This also contains a make target that allows a user to run any of the make commands inside of a consistent operating system. This will allow other developers to contribute and build against a similar environment.

# The purpose of this file is to simply run make commands in deterministic
# environment for those interested in contributing. This is not to be used
# for production purposes.
FROM ubuntu:22.04
Copy link
Contributor

@jbilskiAkam jbilskiAkam Jul 4, 2024

Choose a reason for hiding this comment

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

Is there any reason why you used ubuntu? If not, could alpine golang be used?
Our proposed solution with alpine golang:

# The purpose of this file is to simply run make commands in deterministic
# environment for those interested in contributing. This is not to be used
# for production purposes.
FROM golang:alpine3.17

RUN apk add make git curl

COPY . /workdir

WORKDIR /workdir

# This is a workaround so that running `make lint` does not result in a
# "error obtaining VCS status: exit status 128" error
RUN go env -w GOFLAGS="-buildvcs=false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants