fix(core): update
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get install -y git curl bzip2 nginx sudo nano &&\
|
||||
useradd -ms /bin/bash cardano &&\
|
||||
mkdir -m 0755 /nix &&\
|
||||
chown cardano /nix &&\
|
||||
mkdir -p /etc/nix &&\
|
||||
echo sandbox = false >> /etc/nix/nix.conf &&\
|
||||
echo binary-caches = https://cache.nixos.org https://hydra.iohk.io >> /etc/nix/nix.conf &&\
|
||||
echo binary-cache-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= >> /etc/nix/nix.conf &&\
|
||||
su - cardano -c 'git clone https://github.com/input-output-hk/cardano-sl.git /home/cardano/cardano-sl'
|
||||
|
||||
RUN cat /etc/nix/nix.conf
|
||||
|
||||
ADD default.conf /etc/nginx/conf.d/
|
||||
|
||||
ADD start-cardano-container.sh /home/cardano/cardano-sl/
|
||||
RUN chmod a+x /home/cardano/cardano-sl/start-cardano-container.sh
|
||||
|
||||
RUN echo "cardano ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
|
||||
USER cardano
|
||||
ENV USER cardano
|
||||
RUN curl https://nixos.org/nix/install | sh
|
||||
|
||||
WORKDIR /home/cardano/cardano-sl
|
||||
RUN git checkout tags/3.0.1
|
||||
RUN . /home/cardano/.nix-profile/etc/profile.d/nix.sh &&\
|
||||
nix-build -A connectScripts.mainnet.wallet -o connect-to-mainnet
|
||||
|
||||
CMD /home/cardano/cardano-sl/start-cardano-container.sh
|
Reference in New Issue
Block a user