diff --git a/Dockerfile b/Dockerfile index 9ee2cad..6ea4592 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,18 @@ -FROM python:3.13-slim +FROM alpine + +# Install build dependencies +RUN apk add --no-cache make clang git python3 py3-pip + +# Clone the slitherlink repository and build +RUN git clone https://github.com/davidjosepha/slitherlink /slitherlink \ + && cd /slitherlink \ + && make \ + && mkdir /app \ + && ln -s /slitherlink/slsolver /app/slsolver \ + && cd / # Install dependencies: Fastapi and uvicorn -RUN pip install fastapi uvicorn +RUN pip install fastapi uvicorn --break-system-packages # Copy ./server to /app COPY ./server /app diff --git a/server/slsolver b/server/slsolver deleted file mode 100755 index 07c175c..0000000 Binary files a/server/slsolver and /dev/null differ