FROM golang:1.14.2

WORKDIR /app

COPY go.mod .

COPY go.sum .

RUN go mod download

COPY . .

RUN go build

CMD ["./DISYS_mandatoryEx2.exe"]

# Terminal:
    # Build dockerfile image: docker build . -f Dockerfile -t mutual-exclusion:1