18 lines
464 B
Docker
18 lines
464 B
Docker
# Use official D language Docker image (checked 2025-10-15: dlang2/dmd-ubuntu:latest is stable)
|
|
FROM dlang2/dmd-ubuntu:latest
|
|
|
|
# Install curl development libraries (required for std.net.curl)
|
|
RUN apt-get update && \
|
|
apt-get install -y libcurl4-openssl-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy D source file
|
|
COPY uncloseai.d .
|
|
|
|
# Compile uncloseai
|
|
RUN dmd -of=uncloseai uncloseai.d
|
|
|
|
# Default command runs the examples
|
|
CMD ["./uncloseai"]
|