[U] Update docker

This commit is contained in:
2024-12-17 01:32:50 -05:00
parent 995025286b
commit a2d72950dc
2 changed files with 13 additions and 2 deletions
+13 -2
View File
@@ -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