20 lines
679 B
Docker
20 lines
679 B
Docker
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
|
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
|
# https://www.permacomputer.com
|
|
|
|
FROM haskell:9.2 as builder
|
|
|
|
WORKDIR /app
|
|
COPY uncloseai.cabal .
|
|
RUN cabal update && cabal build --only-dependencies
|
|
|
|
COPY UncloseAI.hs .
|
|
RUN cabal build
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y ca-certificates locales && rm -rf /var/lib/apt/lists/* && \
|
|
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
|
|
ENV LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
|
COPY --from=builder /app/dist-newstyle/build/x86_64-linux/ghc-9.2.8/uncloseai-0.1.0.0/x/uncloseai/build/uncloseai/uncloseai /usr/local/bin/uncloseai
|
|
|
|
CMD ["uncloseai"]
|