This repository has been archived on 2023-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
Vatu/res/docker/Dockerfile
dece c0ff3a9794 docker: add build/run Dockerfile
The image builds Vatu and can run it on Lichess.
2020-06-18 13:14:01 +02:00

15 lines
301 B
Docker

# Build engine.
FROM rust:1 AS builder
COPY . /src
WORKDIR /src
RUN cargo build --release
# Run on a Lichess account.
FROM python:3
COPY . /vatu
WORKDIR /vatu/external/lichess-bot
RUN ls -l
RUN pip install -r requirements.txt
COPY --from=builder /src/target/release/vatu engines/
ENTRYPOINT ["bash"]