Openstatus www.openstatus.dev
at 4c0f4c00a38753a5d0dfd7e7b7b7706dec6f1503 19 lines 296 B view raw
1FROM golang:1.25-alpine 2 3# Set the working directory 4WORKDIR /app 5 6# Copy go.mod and go.sum files (if they exist) 7COPY go.mod ./ 8 9# Copy the source code 10COPY . . 11 12# Build the application 13RUN go build -o main . 14 15# Expose the port your app runs on 16EXPOSE 8080 17 18# Run the application 19CMD ["./main"]