27 lines
663 B
Docker
27 lines
663 B
Docker
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
|
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
|
# https://www.permacomputer.com
|
|
|
|
# GnuCOBOL 3.x (checked 2025-10-13: hldtux/cobol-gnu is available)
|
|
FROM debian:bookworm-slim AS builder
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y gnucobol4 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY uncloseai.cob .
|
|
|
|
# Compile COBOL program
|
|
RUN cobc -x -free uncloseai.cob -o uncloseai
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y gnucobol4 libcob4 ca-certificates curl jq bash && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/uncloseai .
|
|
|
|
CMD ["./uncloseai"]
|