-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsxtnode.Dockerfile
More file actions
49 lines (34 loc) · 1.2 KB
/
sxtnode.Dockerfile
File metadata and controls
49 lines (34 loc) · 1.2 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Build SxT Node Image
FROM docker.io/parity/base-bin:latest
# Switch to root user to make system-wide changes
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN useradd -m -u 1001 -U -s /bin/sh -d /sxtuser sxtuser && \
mkdir -p /data /key /sxtuser/.local/share && \
chown -R sxtuser:sxtuser /data /key && \
ln -s /data /sxtuser/.local/share/sxtuser && \
apt-get update --allow-insecure-repositories && \
apt-get install -y \
curl \
apache2-utils \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV AZURE_ENDPOINT="https://opspublicblockssandboxst.blob.core.windows.net"
ENV AZURE_ACCOUNT_NAME="opspublicblockssandboxst"
ENV AZURE_CONTAINER_NAME="ops-publicblocks-sandbox-stdl-wus2"
ENV AZURE_BASE_PATH="/v0/ETHEREUM"
ENV RUST_LOG="info"
# Copy the built application from workspace
COPY --chmod=755 target/release/sxt-node /usr/local/bin
# Chainspecs
RUN mkdir -p /opt/chainspecs
COPY --chmod=644 chainspecs/raw/*-spec.json /opt/chainspecs/
# Switch to sxtuser
USER sxtuser
EXPOSE 30333 9933 9944 9615
VOLUME ["/data", "/key"]
# Set Defautl logging in Env
ENV RUST_BACKTRACE=full
ENV RUST_LOG=debug
# Entry point to start the application
ENTRYPOINT ["/usr/local/bin/sxt-node"]