test-gin / Dockerfile
oriastanjung's picture
init
797f8c1
raw
history blame contribute delete
211 Bytes
# Stage 1: Build the Go application
FROM golang:1.18
WORKDIR /code
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o restgin
# Define the command to run your application
CMD [ "./restgin" ]