forked from Yakuhito/tibet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use the official Python image as the base image
FROM python:3.9
# Set the working directory
WORKDIR /tibet
# Create and activate a virtual environment
RUN python -m venv venv
RUN /bin/bash -c "source venv/bin/activate"
# Always needed
RUN pip install --extra-index-url https://pypi.chia.net/simple/ chia-dev-tools
# Install requirements from requirements.txt
COPY requirements.txt ./
RUN pip install -r requirements.txt
# Install requirements from api-requirements.txt
COPY api-requirements.txt ./
RUN pip install -r api-requirements.txt
# Clone rest of files files
COPY *.py ./
COPY clsp/ ./clsp/
COPY include ./include/
COPY build.sh ./
# Build code
RUN mkdir clvm
RUN chmod +x build.sh && ./build.sh
# Start the Uvicorn server
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]