moodlink-gofiber / Dockerfile
chandafa's picture
deployment v0.1
1b18b9e
raw
history blame contribute delete
296 Bytes
FROM golang:1.23
# Set working directory
WORKDIR /app
# Copy go.mod and go.sum first to leverage Docker cache
COPY go.mod go.sum ./
RUN go mod download
# Copy the rest of the application
COPY . .
# Build the Go app
RUN go build -o moodlink-backend
# Run the binary
CMD ["./moodlink-backend"]