You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
152 B

3 years ago
FROM golang:1.18
3 years ago
3 years ago
# Set app workdir
WORKDIR /go/src/app
3 years ago
3 years ago
# Copy application sources
3 years ago
COPY . .
3 years ago
# Build app
3 years ago
RUN go build -o bin .
3 years ago
# Run app
3 years ago
CMD ["./bin"]