# Start with a lightweight Alpine Linux base image FROM golang:alpine # Install bash RUN apk add --no-cache bash # Set the Current Working Directory inside the container WORKDIR /app # Copy go mod and sum files # COPY go.mod go.sum ./ # Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed # RUN go mod download