- go.mod module path (and every internal/vibetree import) inventree -> vibetree - cmd/inventree/ -> cmd/vibetree/, deploy/inventree.service -> vibetree.service - Default site name (seed data + the siteName template func's fallback) is now "vibetree", shown in the navbar, <title>, and login page - Session cookie renamed inventree_session -> vibetree_session - Default DB path data/inventree.db -> data/vibetree.db, CLI/log text, Dockerfile, docker-compose.yml, README, .gitignore/.dockerignore all updated to match Existing installs: this changes the session cookie name (users will be signed out once) and the default DB filename (point -db at your existing file, or rename it, to keep your data).
28 lines
770 B
Docker
28 lines
770 B
Docker
syntax=docker/dockerfile:1
|
|
|
|
FROM golang:1.25-alpine AS build
|
|
WORKDIR /src
|
|
ENV CGO_ENABLED=0
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
ARG VERSION=dev
|
|
RUN go build -trimpath -ldflags "-s -w -X main.version=${VERSION}" -o /out/vibetree ./cmd/vibetree
|
|
|
|
FROM alpine:3.20
|
|
RUN apk add --no-cache ca-certificates tzdata && \
|
|
addgroup -S vibetree && adduser -S vibetree -G vibetree
|
|
WORKDIR /app
|
|
COPY --from=build /out/vibetree /usr/local/bin/vibetree
|
|
RUN mkdir -p /app/data && chown -R vibetree:vibetree /app/data
|
|
|
|
USER vibetree
|
|
VOLUME ["/app/data"]
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s CMD wget -qO- http://127.0.0.1:8080/healthz || exit 1
|
|
|
|
ENTRYPOINT ["vibetree"]
|
|
CMD ["serve", "-addr", ":8080", "-db", "/app/data/vibetree.db"]
|