forked from EspressoSystems/nitro-espresso-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.enclave
More file actions
32 lines (29 loc) · 1.02 KB
/
Dockerfile.enclave
File metadata and controls
32 lines (29 loc) · 1.02 KB
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
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 AS socat-builder
RUN yum install -y \
gcc make tar gzip wget openssl-devel \
&& yum clean all
RUN yum install wget tar gcc -y
RUN wget http://www.dest-unreach.org/socat/download/socat-1.7.4.4.tar.gz
RUN echo "0f8f4b9d5c60b8c53d17b60d79ababc4a0f51b3bb6d2bd3ae8a6a4b9d68f195e socat-1.7.4.4.tar.gz" | sha256sum -c -
RUN tar -xzf socat-1.7.4.4.tar.gz && \
cd socat-1.7.4.4 && \
./configure && \
make && \
make install
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
COPY --from=socat-builder /usr/local/bin/socat /usr/local/bin/
RUN yum install aws-nitro-enclaves-cli aws-nitro-enclaves-cli-devel jq python3-pip -y
RUN pip3 install supervisor
COPY output/nitro.eif /home
COPY ./run.sh /home
RUN chmod +x /home/run.sh
ENV CPU_COUNT=2
ENV MEMORY_MIB=8192
ENV AWS_REGION="us-east-2"
ENV ENCLAVE_CID=16
ENV L1_NODE="127.0.0.1:8546"
ENV L1_BEACON_NODE="127.0.0.1:3500"
ENV NFS_SERVER="127.0.0.1:2049"
ENV RPC_HTTP_PORT=8547
ENV RPC_WS_PORT=8548
ENTRYPOINT [ "/home/run.sh" ]