Files
himbot/Dockerfile
Atridad Lahiji 9694a42f3f
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m23s
Trying some weird training nonsense. Maybe this will be fun.
2026-01-20 14:48:53 -07:00

36 lines
647 B
Docker

# Build stage
FROM golang:1.25.5 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:24.04
# Install SSL certificates and required runtime libraries
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy the binary
COPY --from=build /go/bin/app /app/himbot
# Copy migrations directory
COPY --from=build /app/migrations /app/migrations
# Copy datasets directory
COPY --from=build /app/datasets /app/datasets
# Set the entrypoint
ENTRYPOINT ["/app/himbot"]