Openstatus
www.openstatus.dev
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"]