-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
41 lines (31 loc) · 935 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
34
35
36
37
38
39
40
41
FROM python:3.11-slim
WORKDIR /app
RUN python3 -m venv venv
SHELL ["/bin/bash", "-c"]
RUN source venv/bin/activate
RUN pip install --extra-index-url https://pypi.chia.net/simple/ chia-dev-tools==1.2.5
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_18.x -o /tmp/nodesource_setup.sh
RUN chmod +x /tmp/nodesource_setup.sh && /tmp/nodesource_setup.sh
RUN apt-get install -y nodejs
RUN npm install -g npm@latest
COPY package.json .
COPY package-lock.json .
COPY tsconfig.json .
RUN npm i
COPY puzzles puzzles/
COPY include include/
COPY contracts contracts/
COPY l1_block_abi.json .
COPY test.sh .
COPY scripts scripts/
COPY drivers drivers/
COPY commands commands/
COPY test test/
COPY tests tests/
COPY cli.py .
COPY hardhat.config.example.ts /app/hardhat.config.ts
RUN npx hardhat compile
ENTRYPOINT ["python3", "cli.py"]