forked from steger/pr3-ws202526
15 lines
533 B
Docker
15 lines
533 B
Docker
FROM golang:1.25
|
|
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
RUN go install github.com/go-delve/delve/cmd/dlv@latest
|
|
RUN go install -v github.com/cweill/gotests/gotests@v1.6.0
|
|
RUN go install -v golang.org/x/tools/gopls@latest
|
|
RUN go install -v golang.org/x/tools/cmd/goimports@latest
|
|
RUN go install -v honnef.co/go/tools/cmd/staticcheck@latest
|
|
|
|
ARG USERNAME=developer
|
|
ARG USER_UID=1000
|
|
ARG USER_GID=$USER_UID
|
|
RUN groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
|
|
USER $USERNAME
|