Skip to content

Commit

Permalink
Fix Docker by removing vendor and updating golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonreinke committed Mar 18, 2023
1 parent 93c6178 commit e94e869
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM golang:1.12 as builder
FROM golang:1.15 as builder

WORKDIR /project
COPY main.go go.mod go.sum ./
COPY downloader ./downloader
ADD vendor ./vendor
ADD version ./version

# Production-ready build, without debug information specifically for linux
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog -mod=vendor .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog .


FROM alpine:3.12
Expand Down

0 comments on commit e94e869

Please sign in to comment.