dendrite/docker/microservices/Dockerfile
2019-10-04 12:18:58 -04:00

14 lines
338 B
Docker

FROM golang:1.12.9
WORKDIR /app
# Copy the source from the current directory to the Working Directory inside the container
COPY . .
# Statically link binaries
ENV CGO_ENABLED=0
# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
RUN go mod download
# Build the Go app
RUN ./build.sh