File tree Expand file tree Collapse file tree 3 files changed +36
-25
lines changed Expand file tree Collapse file tree 3 files changed +36
-25
lines changed Original file line number Diff line number Diff line change 3
3
# on a debian-compatible x86-64 environment
4
4
FROM debian:11-slim
5
5
6
- # Args
7
- ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/8.1.2/cardano-node-8.1.2-linux.tar.gz
6
+ # Create appuser
7
+ RUN adduser --no-create-home --disabled-password appuser
8
+
9
+ # Precreate workdir
10
+ RUN mkdir -p /app/bin
8
11
9
12
# Upgrade
10
- RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && rm -rf /var/lib/apt/lists/*
13
+ RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && apt-get clean && rm -rf /var/lib/apt/lists/*
11
14
12
- # Create appuser
13
- RUN adduser --no-create-home --disabled-password appuser
15
+ # Install cardano-cli
16
+ ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/8.1.2/cardano-node-8.1.2-linux.tar.gz
17
+ RUN wget -nv -O cardano-bin.tar.gz $CARDANO_BIN_URL \
18
+ && tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin \
19
+ && /app/bin/cardano-cli --version \
20
+ && rm -f cardano-bin.tar.gz
14
21
15
22
# Copy the executable
16
23
COPY mithril-aggregator/mithril-aggregator /app/bin/mithril-aggregator
17
- COPY mithril-aggregator/config /app/config
18
24
19
- # Install cardano-cli
20
- RUN wget -nv -O cardano-bin.tar.gz $CARDANO_BIN_URL
21
- RUN tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin
22
- RUN /app/bin/cardano-cli --version
23
- RUN rm -f cardano-bin.tar.gz
25
+ # Copy the config files
26
+ COPY mithril-aggregator/config /app/config
24
27
25
28
#Workdir
26
29
WORKDIR /app/
Original file line number Diff line number Diff line change 3
3
# on a debian-compatible x86-64 environment
4
4
FROM debian:11-slim
5
5
6
- # Upgrade
7
- RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && rm -rf /var/lib/apt/lists/*
8
-
9
6
# Create appuser
10
7
RUN adduser --disabled-password appuser
11
8
9
+ # Precreate workdir
10
+ RUN mkdir -p /app/bin
11
+
12
+ # Upgrade
13
+ RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && apt-get clean && rm -rf /var/lib/apt/lists/*
14
+
12
15
# Copy the executable
13
16
COPY mithril-client/mithril-client /app/bin/mithril-client
17
+
18
+ # Copy the config files
14
19
COPY mithril-client/config /app/config
15
20
16
21
# Workdir
Original file line number Diff line number Diff line change 3
3
# on a debian-compatible x86-64 environment
4
4
FROM debian:11-slim
5
5
6
- # Args
7
- ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/8.1.2/cardano-node-8.1.2-linux.tar.gz
6
+ # Create appuser
7
+ RUN adduser --no-create-home --disabled-password appuser
8
+
9
+ # Precreate workdir
10
+ RUN mkdir -p /app/bin
8
11
9
12
# Upgrade
10
- RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && rm -rf /var/lib/apt/lists/*
13
+ RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && apt-get clean && rm -rf /var/lib/apt/lists/*
11
14
12
- # Create appuser
13
- RUN adduser --no-create-home --disabled-password appuser
15
+ # Install cardano-cli
16
+ ARG CARDANO_BIN_URL=https://github.com/input-output-hk/cardano-node/releases/download/8.1.2/cardano-node-8.1.2-linux.tar.gz
17
+ RUN wget -nv -O cardano-bin.tar.gz $CARDANO_BIN_URL \
18
+ && tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin \
19
+ && /app/bin/cardano-cli --version \
20
+ && rm -f cardano-bin.tar.gz
14
21
15
22
# Copy the executable
16
23
COPY mithril-signer/mithril-signer /app/bin/mithril-signer
17
- COPY mithril-signer/config /app/config
18
24
19
- # Install cardano-cli
20
- RUN wget -nv -O cardano-bin.tar.gz $CARDANO_BIN_URL
21
- RUN tar xzf cardano-bin.tar.gz ./cardano-cli && mv cardano-cli /app/bin
22
- RUN /app/bin/cardano-cli --version
23
- RUN rm -f cardano-bin.tar.gz
25
+ # Copy the config files
26
+ COPY mithril-signer/config /app/config
24
27
25
28
# Workdir
26
29
WORKDIR /app/
You can’t perform that action at this time.
0 commit comments