-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (39 loc) · 1.08 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nodejs \
npm \
git \
sqlite3 \
expect
# Set working directory
WORKDIR /app
# Clone EWC repository
RUN git clone https://github.com/ThierryM1212/ewc.git
# Change working directory to the EWC directory
WORKDIR /app/ewc
# Install EWC dependencies
RUN npm install
# Build EWC
RUN npm run build
# Install EWC locally
RUN npm run localinstall
# Copy the expect script into the container
COPY ewc_expect_script.sh .
# Make the script executable
RUN chmod +x ewc_expect_script.sh
# Run the expect script to automate the input of the wallet password
RUN ./ewc_expect_script.sh
# Change working directory back to the parent directory
WORKDIR /app
# Copy necessary files
COPY entrypoint.sh .
COPY dicefaucet.py .
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Make the entrypoint script executable
RUN chmod +x entrypoint.sh
# Set the entrypoint for the container
ENTRYPOINT ["./entrypoint.sh"]