-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (26 loc) · 994 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
FROM debian:stable-slim
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
curl \
jq \
ca-certificates \
gnupg2 \
lsb-release \
software-properties-common \
&& apt-get autoremove -y
# static cardano binaries
RUN curl -s https://update-cardano-mainnet.iohk.io/cardano-node-releases/cardano-node-1.35.4-linux.tar.gz | tar -xz -C /opt
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - \
&& apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \
&& apt-get -y update && apt-get install -y vault \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="$PATH:/opt"
ENV CARDANO_CLI="/opt/cardano-cli"
# update permissions & change user to not run as root
WORKDIR /app
COPY ./scripts /app
# To load the common bash functions in a script later on
COPY ./scripts/cardano_functions.sh /usr/local/lib/cardano_functions.sh
RUN chgrp -R 0 /app && chmod -R g=u /app
USER 1001