github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/Dockerfile.tests (about) 1 FROM golang:1.17-alpine as builder 2 3 # Installing nodejs 4 RUN apk add --no-cache --update nodejs npm curl bash build-base 5 6 # Installing Yarn 7 RUN curl -o- -L https://yarnpkg.com/install.sh | bash 8 ENV PATH="$PATH:/root/.yarn/bin:/root/.config/yarn/global/node_modules" 9 10 WORKDIR /ox 11 ADD . . 12 13 # Building the application binary in bin/app 14 RUN go build -v ./cmd/ox 15 16 # Running unit tests 17 RUN go test --tags sqlite -v --cover ./... 18 19 # Running integration tests 20 RUN go test --tags integration -v --cover ./cli/...