cmd-api/Dockerfile
Kaustubh Maske Patil 85c71d2372 initial commit
2023-08-31 15:15:38 +05:30

17 lines
358 B
Docker

# 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"