Skip to content

Commit af66474

Browse files
authored
Replace alpine base docker image with ubuntu (#12)
1 parent 7df371a commit af66474

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
2-
FROM golang:1.18-alpine3.16 AS builder
1+
FROM ubuntu:22.04 AS builder
2+
RUN apt-get update && \
3+
apt-get install -y \
4+
build-essential \
5+
ca-certificates \
6+
golang \
7+
golang-1.18
38
ADD ./catcher ./catcher
49
ADD ./relay ./relay
510
ADD ./go.mod .
611
ADD ./go.sum .
712
ADD ./Makefile .
8-
RUN apk add --update make build-base git binutils-gold
913
RUN set -ex && \
10-
unset GOPATH && \
1114
make
1215

13-
FROM alpine
14-
RUN apk add --update ca-certificates
15-
COPY --from=builder /go/dist /dist
16+
FROM ubuntu:22.04
17+
RUN apt-get update && \
18+
apt-get install -y \
19+
ca-certificates
20+
COPY --from=builder /dist /dist
1621
ENTRYPOINT [ "/dist/relay" ]

0 commit comments

Comments
 (0)