# Dockerfile for cmd-api # GOOS=linux GOARCH=amd64 # Copy the source code into some directory # Build it with GOOS and GOARCH # Entrypoint would be this binary # The configuration variables can be provided during docker run with "-e" option FROM go:... COPY . /app WORKDIR /app RUN "GOOS=linux GOARCH=amd64 go build -o ./cmd-api" ENTRYPOINT "./cmd-api"