generated from opentensor/bittensor-subnet-template
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathhealthcheck-dockerfile
25 lines (18 loc) · 1.01 KB
/
healthcheck-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
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install httpx
RUN pip install fastapi-cli
RUN pip install asyncpg
RUN pip install cachetools
# Make port 4000 available to the world outside this container
EXPOSE 4000
RUN btcli wallet regen_coldkey --wallet.path /root/.bittensor/wallets --mnemonic "rib volume tomato layer powder evolve supreme hip blood enough drop cable" --no_password --wallet.name validator
RUN btcli wallet regen_hotkey --wallet.path /root/.bittensor/wallets --wallet.name validator --wallet.hotkey default --mnemonic forum leopard person there tribe cube kidney corn confirm off develop dice
# Run healthcheck/main.py when the container launches
CMD ["uvicorn", "healthcheck.main:app", "--host", "0.0.0.0", "--port", "4000"]