-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (15 loc) · 584 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (15 loc) · 584 Bytes
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
FROM ubuntu:24.04
LABEL Name=tinychain Version=0.0.3
ARG CRATE=""
ARG TZ=America/New_York
ENV TZ=${TZ}
ENV CRATE=${CRATE}
RUN echo $TZ $CRATE
RUN apt-get -y update && apt-get install -y sudo curl
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN apt-get install -y gnupg2 ca-certificates apt-utils software-properties-common
RUN apt-get install -y build-essential
RUN . $HOME/.cargo/env && cargo install tinychain $CRATE
RUN ln -s $HOME/.cargo/bin/tinychain tinychain
RUN mkdir -p /tmp/data