2022-11-16 00:54:21 +01:00
|
|
|
FROM docker.io/jguer/yay-builder:latest
|
2020-09-08 00:02:28 +02:00
|
|
|
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY go.mod .
|
|
|
|
|
2022-11-16 00:29:53 +01:00
|
|
|
RUN pacman -Sy && pacman -S --overwrite=* --noconfirm archlinux-keyring && \
|
2022-11-16 00:54:21 +01:00
|
|
|
pacman -Su --overwrite=* --needed --noconfirm go git gcc make && \
|
2021-08-19 16:52:29 +02:00
|
|
|
rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && \
|
2022-11-15 15:17:56 +01:00
|
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 && \
|
2021-08-19 16:52:29 +02:00
|
|
|
go mod download
|