Created
April 13, 2020 19:38
-
-
Save akantsevoi/d7da734e4dd4c067269a54eeb6b43340 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG GO_VERSION=1.13.4 | |
FROM golang:${GO_VERSION}-alpine | |
RUN apk add --no-cache ca-certificates git | |
RUN apk add mysql mysql-client | |
WORKDIR /main | |
COPY go.mod go.sum ./ | |
RUN go mod download | |
COPY cmd ./cmd | |
COPY tests.sh waitMysql.sh ./ | |
RUN chmod +x waitMysql.sh | |
RUN chmod +x tests.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment