[U] Update docker
This commit is contained in:
+13
-2
@@ -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
|
# Install dependencies: Fastapi and uvicorn
|
||||||
RUN pip install fastapi uvicorn
|
RUN pip install fastapi uvicorn --break-system-packages
|
||||||
|
|
||||||
# Copy ./server to /app
|
# Copy ./server to /app
|
||||||
COPY ./server /app
|
COPY ./server /app
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user