github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/Dockerfile.slim.build (about)

     1  FROM golang:alpine
     2  EXPOSE 3000
     3  
     4  ENV GO111MODULE=on
     5  ENV GOPROXY=https://proxy.golang.org 
     6  
     7  RUN apk add --no-cache --upgrade apk-tools \
     8      && apk add --no-cache bash curl openssl git build-base nodejs npm sqlite sqlite-dev mysql-client vim postgresql libpq postgresql-contrib libc6-compat
     9  
    10  # Installing linter
    11  RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh \
    12      | sh -s -- -b $(go env GOPATH)/bin v1.24.0
    13  
    14  # Installing Yarn
    15  RUN npm i -g --no-progress yarn \
    16      && yarn config set yarn-offline-mirror /npm-packages-offline-cache \
    17      && yarn config set yarn-offline-mirror-pruning true
    18  
    19  # Pulling docker binary from releases
    20  RUN curl -sf https://gobinaries.com/gobuffalo/buffalo/buffalo@v0.16.20| sh 
    21  RUN go get github.com/gobuffalo/buffalo-pop/v2
    22  RUN buffalo version
    23  
    24  RUN mkdir /src
    25  WORKDIR /src