Browse Source

ci(dockerfile): reduce image size and update readme

jguer 4 years ago
parent
commit
1f3020e7d6
2 changed files with 4 additions and 3 deletions
  1. 1 0
      README.md
  2. 3 3
      ci.Dockerfile

+ 1 - 0
README.md

@@ -44,6 +44,7 @@ building with makepkg:
 Before you begin, make sure you have the `base-devel` package group installed.
 
 ```sh
+pacman -S --needed git base-devel
 git clone https://aur.archlinux.org/yay.git
 cd yay
 makepkg -si

+ 3 - 3
ci.Dockerfile

@@ -1,12 +1,12 @@
-FROM lopsided/archlinux:devel
+FROM lopsided/archlinux:latest
 LABEL maintainer="Jguer,joaogg3 at google mail"
 
 ENV GO111MODULE=on
 WORKDIR /app
 
-RUN pacman -Syu --overwrite=* --needed --noconfirm go git
+RUN pacman -Syu --overwrite=* --needed --noconfirm go fakeroot binutils gcc make git
 
-RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.30.0
+RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0
 
 COPY go.mod .