# Use a newer version of go to appease #golangci-lint FROM golang:1.20.6-alpine3.18 RUN apk update && \ apk add --no-cache \ make \ python3 \ py3-pip # Install golang-ci-lint RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.56.2 # Install sqlfluff RUN pip install wheel # It complains if we attempt to install this in the same command as Cython RUN pip install "Cython<3.0" pyyaml --no-build-isolation # Fix for https://github.com/yaml/pyyaml/issues/601 RUN pip install "sqlfluff==2.1.2" WORKDIR /pg-schema-diff COPY . . CMD ["lint"] ENTRYPOINT ["make"]