Skip to content

Instantly share code, notes, and snippets.

@akantsevoi
Created April 13, 2020 19:38
Show Gist options
  • Save akantsevoi/d7da734e4dd4c067269a54eeb6b43340 to your computer and use it in GitHub Desktop.
Save akantsevoi/d7da734e4dd4c067269a54eeb6b43340 to your computer and use it in GitHub Desktop.
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