modified: languages/c/curl/Dockerfile modified: languages/c/libsoup/Dockerfile modified: languages/c/nghttp2/Dockerfile modified: languages/c/nghttp2/uncloseai.c modified: languages/cpp/boost-beast/Dockerfile modified: languages/cpp/cpp-httplib/Dockerfile modified: languages/cpp/libcurl/Dockerfile modified: languages/csharp/openai/Dockerfile modified: languages/go/http/Dockerfile modified: languages/go/openai/Dockerfile modified: languages/lua/Dockerfile modified: languages/ruby/openai/Dockerfile modified: languages/vbnet/Dockerfile
24 lines
538 B
Docker
24 lines
538 B
Docker
# Pin to specific Alpine version (checked 2025-10-14: alpine:3.20 is latest stable)
|
|
FROM alpine:latest
|
|
|
|
# Install C++ compiler and build tools
|
|
RUN apk --no-cache add \
|
|
g++ \
|
|
make \
|
|
wget \
|
|
ca-certificates \
|
|
openssl-dev
|
|
|
|
WORKDIR /app
|
|
|
|
# Download cpp-httplib header-only library (v0.18.3 latest as of 2025-10-14)
|
|
RUN wget -O httplib.h https://raw.githubusercontent.com/yhirose/cpp-httplib/v0.18.3/httplib.h
|
|
|
|
COPY uncloseai.cpp .
|
|
COPY Makefile .
|
|
|
|
# Compile the application
|
|
RUN make
|
|
|
|
# Run the examples
|
|
CMD ["./uncloseai"]
|