Skip to content

Commit 8264866

Browse files
committed
improve docker images, improve ci
1 parent bf2b16c commit 8264866

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

genesis/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ RUN apt-get update -y && \
2323
rm -rf /var/lib/apt/lists/*
2424
RUN pip3 install toml
2525

26-
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA .
26+
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA /namada
27+
RUN cd /namada
2728

2829
# Important!
2930
WORKDIR /namada

namada/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ FROM docker.io/rust:1.81-slim-bullseye as builder
77
ARG GIT_SHA
88
ARG PROFILE="release"
99

10-
WORKDIR /namada
11-
1210
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
1311
make \
1412
git-core \
@@ -23,7 +21,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
2321
ca-certificates \
2422
&& apt-get clean && rm -rf /var/lib/apt/lists/*
2523

26-
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA .
24+
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA /namada
25+
RUN cd /namada
26+
27+
WORKDIR /namada
2728

2829
# Be aware the patch could potentially be version dependent
2930
# getting rid of the sudo

namada/Dockerfile.inst

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
2222
wget \
2323
&& apt-get clean && rm -rf /var/lib/apt/lists/*
2424

25-
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA .
25+
ADD --keep-git-dir=true https://github.com/anoma/namada.git#$GIT_SHA /namada
26+
RUN cd /namada
27+
28+
WORKDIR /namada
2629

2730
# Be aware the patch could potentially be version dependent
2831
# getting rid of the sudo

0 commit comments

Comments
 (0)