Skip to content

Commit

Permalink
Merge pull request #31 from carsonreinke/fix-docker
Browse files Browse the repository at this point in the history
Fix Docker by removing vendor and updating golang version
  • Loading branch information
SijmenHuizenga authored Mar 20, 2023
2 parents 1339978 + e94e869 commit fd788ba
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 fd788ba

Please sign in to comment.