-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (26 loc) · 989 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM --platform=linux/amd64 ubuntu:bionic AS builder
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
apt-utils \
ca-certificates \
curl \
wget \
gnupg-agent
RUN wget http://github.com/golang-migrate/migrate/releases/latest/download/migrate.linux-amd64.deb
RUN dpkg -i migrate.linux-amd64.deb
RUN WAIT_FOR_VERSION=v2.2.3 && \
wget -qO/bin/wait-for https://github.com/eficode/wait-for/releases/download/${WAIT_FOR_VERSION}/wait-for && \
chmod +x /bin/wait-for
FROM golang:1.22-alpine
ENV GODOG_VERSION=v0.12.6
ENV GOIMPORTS_VERSION=v0.7.0
RUN apk update && apk add --no-cache git \
make \
bash \
alpine-sdk
RUN go install github.com/boumenot/gocover-cobertura@latest
RUN go install github.com/cucumber/godog/cmd/godog@${GODOG_VERSION}
RUN go install golang.org/x/tools/cmd/goimports@${GOIMPORTS_VERSION}
COPY --from=builder /usr/bin/migrate /usr/local/bin/migrate
COPY --from=builder /bin/wait-for /usr/local/bin/wait-for