github.com/deso-protocol/core@v1.2.9/test.Dockerfile (about)

     1  FROM alpine:latest AS core
     2  
     3  RUN apk update
     4  RUN apk upgrade
     5  RUN apk add --update go gcc g++ vips vips-dev
     6  
     7  WORKDIR /deso/src/core
     8  
     9  COPY go.mod .
    10  COPY go.sum .
    11  
    12  RUN go mod download
    13  
    14  COPY desohash desohash
    15  COPY cmd       cmd
    16  COPY lib       lib
    17  COPY test_data test_data
    18  COPY migrate   migrate
    19  COPY main.go   .
    20  
    21  # build backend
    22  RUN GOOS=linux go build -mod=mod -a -installsuffix cgo -o bin/core main.go
    23  
    24  ENTRYPOINT ["go", "test", "-v", "github.com/deso-protocol/core/lib"]