21 lines
537 B
Docker
21 lines
537 B
Docker
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
|
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
|
# https://www.permacomputer.com
|
|
|
|
# Crystal latest-alpine (checked 2025-10-13: crystallang/crystal:latest-alpine is latest stable)
|
|
FROM crystallang/crystal:latest-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY uncloseai.cr .
|
|
|
|
# Build the application
|
|
RUN crystal build --release uncloseai.cr
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache ca-certificates gc-dev pcre2-dev libevent-dev
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/uncloseai .
|
|
|
|
CMD ["./uncloseai"]
|