Skip to content

Commit c9d1bca

Browse files
authored
Move builder-scripts/ COPY command
Move the command before Nextclade downloads since it is a "setup" step. This keeps download commands closer to each other, and allows Nextclade download commands to use scripts if needed in the future.
1 parent c05f4d6 commit c9d1bca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ RUN pip3 install git+https://github.com/cov-lineages/pango-designation.git@19d9a
142142
# docker build --build-arg CACHE_DATE="$(date)"
143143
ARG CACHE_DATE
144144

145+
# Add helper scripts
146+
COPY builder-scripts/ /builder-scripts/
147+
145148
# Nextclade/Nextalign v2 are downloaded directly but using the latest version,
146149
# so they belong after CACHE_DATE (unlike Nextclade/Nextalign v1).
147150

@@ -155,9 +158,6 @@ RUN curl -fsSL -o /final/bin/nextalign2 https://github.com/nextstrain/nextclade/
155158
RUN curl -fsSL -o /final/bin/nextclade2 https://github.com/nextstrain/nextclade/releases/latest/download/nextclade-x86_64-unknown-linux-gnu \
156159
&& ln -sv nextclade2 /final/bin/nextclade
157160

158-
# Add helper scripts
159-
COPY builder-scripts/ /builder-scripts/
160-
161161
# Fauna
162162
RUN /builder-scripts/download-repo https://github.com/nextstrain/fauna master /nextstrain/fauna
163163

0 commit comments

Comments
 (0)