himbot/Dockerfile
Atridad Lahiji 1403a756f7
Some checks failed
Fly Deploy / Deploy app (push) Failing after 11s
Dockerify
2024-11-22 16:52:23 -06:00

25 lines
426 B
Docker

# Build stage
FROM golang:1.23.2 AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -ldflags="-s -w" -o /go/bin/app
# Final stage
FROM ubuntu:22.04
# Install SSL certificates and required runtime libraries
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /go/bin/app /app
# Set the entrypoint
ENTRYPOINT ["/app"]