chore: Add huggingface deployment
Browse files- Dockerfile +8 -7
- README.md +1 -0
Dockerfile
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
FROM docker.io/library/python:3.11-slim-bullseye
|
2 |
|
3 |
RUN apt-get update
|
@@ -11,11 +16,7 @@ RUN pip install --user --no-cache python-fasthtml
|
|
11 |
|
12 |
ENV PATH="/home/user/.local/bin:$PATH"
|
13 |
|
14 |
-
COPY --chown=user target/wheels/othello-0.1.0-cp311-cp311-
|
15 |
-
RUN pip install --user
|
16 |
-
# COPY --chown=user python/othello/__init__.py ./othello/__init__.py
|
17 |
-
# COPY --chown=user python/othello/ui.py ./othello/ui.py
|
18 |
|
19 |
-
ENTRYPOINT ["othello-ui"]
|
20 |
-
# ENTRYPOINT ["uvicorn"]
|
21 |
-
# CMD ["pkg.ui:create_app", "--host", "0.0.0.0", "--port", "8000", "--factory"]%
|
|
|
1 |
+
FROM ghcr.io/pyo3/maturin AS builder
|
2 |
+
|
3 |
+
ADD . .
|
4 |
+
RUN /usr/bin/maturin build --release --interpreter python3.11
|
5 |
+
|
6 |
FROM docker.io/library/python:3.11-slim-bullseye
|
7 |
|
8 |
RUN apt-get update
|
|
|
16 |
|
17 |
ENV PATH="/home/user/.local/bin:$PATH"
|
18 |
|
19 |
+
COPY --chown=user --from=builder /io/target/wheels/othello-0.1.0-cp311-cp311-manylinux*.whl .
|
20 |
+
RUN pip install --user *.whl
|
|
|
|
|
21 |
|
22 |
+
ENTRYPOINT ["othello-ui"]
|
|
|
|
README.md
CHANGED
@@ -6,6 +6,7 @@ colorTo: blue
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: apache-2.0
|
|
|
9 |
---
|
10 |
|
11 |
# Othello Game
|
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: apache-2.0
|
9 |
+
app_port: 5001
|
10 |
---
|
11 |
|
12 |
# Othello Game
|