Skip to content

Docker changie development image to help to contribute #400

Answered by miniscruff
llaville asked this question in Ideas
Discussion options

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

Comment options

You must be logged in to vote
2 replies
@llaville
Comment options

@miniscruff
Comment options

Comment options

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

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