Files
Mako/Dockerfile
T
VeillaxandClaude Sonnet 5.5 e3147597e8
CI / test (push) Successful in 2m9s
Release / release (push) Successful in 2m16s
Rename Nurse to Mako
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 00:07:43 -06:00

17 lines
615 B
Docker

# Build: docker build -t mako .
FROM golang:1.27-alpine AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o /mako ./cmd/mako
FROM alpine:3.20
RUN apk add --no-cache tzdata ca-certificates && adduser -D -u 10001 mako && mkdir /config && chown mako /config
COPY --from=build /mako /usr/local/bin/mako
USER mako
# The config file and the notes both live under /config.
ENV MAKO_CONFIG=/config/mako.json
WORKDIR /config
EXPOSE 8490
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8490/healthz || exit 1
ENTRYPOINT ["mako", "serve", "-listen", "0.0.0.0:8490"]