Skip to content

Docker changie development image to help to contribute #400

Answered by miniscruff
llaville asked this question in Ideas

You must be logged in to vote

I was working on this today and got a basic dockerfile to work, combining this with a binding mount of your local directory should get you started. I am not quite sure I want to support this environment officially as it is not something I would use or even recommend.

FROM golang:1.18

WORKDIR /app

# Install tools
RUN go install golang.org/x/tools/cmd/goimports@latest &&
    go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 &&
    go install -tags extended github.com/gohugoio/hugo@latest
docker build -t changie:dev . -f dev.Dockerfile # or whatever name you give it
docker run --mount type=bind,source="$(pwd)",target=/app changie:dev make test # run unit tests
docker r…

Replies: 3 comments 2 replies

You must be logged in to vote
2 replies
@llaville

@miniscruff

You must be logged in to vote
0 replies
Answer selected by miniscruff

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants