Skip to content

Commit

Permalink
update golang version in Dockerfile (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Marnach <[email protected]>
  • Loading branch information
mozkeeler and smarnach authored May 17, 2023
1 parent 59258b0 commit dddef20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions containers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM golang:1.15-buster as builder
FROM golang:1.20-buster as builder
RUN mkdir /build
WORKDIR /build
RUN mkdir bin gopath
ENV GOPATH /build/gopath
ADD . /build/gopath/src/github.com/mozilla/OneCRL-Tools/

RUN go get github.com/mozilla/OneCRL-Tools/ccadb2OneCRL
RUN CGO_ENABLED=0 go build -o bin/ccadb2OneCRL github.com/mozilla/OneCRL-Tools/ccadb2OneCRL
WORKDIR /build/gopath/src/github.com/mozilla/OneCRL-Tools/ccadb2OneCRL
RUN CGO_ENABLED=0 go build -o /build/bin/ccadb2OneCRL
WORKDIR /build

FROM alpine:3
RUN apk add --no-cache ca-certificates
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ require (
golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d // indirect
gopkg.in/yaml.v2 v2.3.0
)

replace github.com/mozilla/OneCRL-Tools v0.0.0-20200707043610-3371182b2d48 => ./

0 comments on commit dddef20

Please sign in to comment.