Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Update go 1.20.7 #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM golang:1.16.3-alpine AS build
WORKDIR $GOPATH/src/github.com/micromata/dave/
FROM golang:1.20.7-alpine AS build
WORKDIR $GOPATH/src/github.com/jusplainmike/dave/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hej, could you please modify the basename to micromata?

Thanks! 😎

COPY . .
RUN go build -o /go/bin/dave cmd/dave/main.go
RUN go build -o /go/bin/davecli cmd/davecli/main.go

FROM alpine:latest
RUN adduser -S dave
RUN addgroup -g 1000 dave
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

RUN adduser -S dave -u 1000 dave
COPY --from=build /go/bin/davecli /usr/local/bin
COPY --from=build /go/bin/dave /usr/local/bin
USER dave
Expand Down