File size: 518 Bytes
8a25292
 
 
 
 
ee7b07c
 
 
 
 
 
 
 
 
 
 
 
 
8a25292
 
ee7b07c
8a25292
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ghcr.io/pyo3/maturin AS builder

ADD . .
RUN /usr/bin/maturin build --release --interpreter python3.11

FROM docker.io/library/python:3.11-slim-bullseye

RUN apt-get update

RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user/app

RUN pip install --user --upgrade pip
RUN pip install --user --no-cache python-fasthtml

ENV PATH="/home/user/.local/bin:$PATH"

COPY --chown=user --from=builder /io/target/wheels/othello-0.1.0-cp311-cp311-manylinux*.whl .
RUN pip install --user *.whl

ENTRYPOINT ["othello-ui"]