Files
prosolis fd403273dd go: move to 1.27 (toolchain 1.27.1)
go.mod and the Dockerfile builder go from 1.25 to 1.27. The toolchain line
pins 1.27.1 so the server's auto download grabs the patch release, not 1.27.0.
tidy also moved chehsunliu/poker into the direct requires, where it belonged.
2026-09-22 22:26:06 -07:00

24 lines
707 B
Docker

FROM node:20-alpine AS css
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install --no-audit --no-fund
COPY tailwind.config.js ./
COPY internal/web ./internal/web
RUN npx tailwindcss -i internal/web/static/css/input.css -o internal/web/static/css/output.css --minify
FROM golang:1.27-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=css /app/internal/web/static/css/output.css ./internal/web/static/css/output.css
RUN CGO_ENABLED=0 go build -tags goolm -o pete .
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY --from=builder /app/pete .
VOLUME /app/data
EXPOSE 8080
CMD ["./pete", "-config", "/app/config.toml"]