Skip to content

Commit abc8ca9

Browse files
committed
🚧 fix cache permissions
1 parent 1895b53 commit abc8ca9

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎Dockerfile‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,25 @@ RUN conda init bash
1616

1717

1818
# Create conda environments
19+
# FIXME: replace chmod workaround for `tb-profiler update_tbdb` to write to
20+
# /nextstrain/miniforge/envs/tb-profiler/share/tbprofiler/
1921

2022
RUN conda create -y --name snippy \
2123
-c conda-forge -c bioconda \
2224
sra-tools=3.2.1 \
2325
snippy=4.6.0 \
24-
&& conda clean -afy
26+
&& conda clean -afy \
27+
&& rm -rf ~/.cache \
28+
&& chmod -R 777 /nextstrain/miniforge
29+
2530

26-
# chmod allows `tb-profiler update_tbdb` to write to
27-
# /nextstrain/miniforge/envs/tb-profiler/share/tbprofiler/
2831
RUN conda create -y --name tb-profiler \
2932
-c conda-forge -c bioconda \
3033
sra-tools=3.2.1 \
3134
tb-profiler=6.6.3-0 \
3235
&& conda clean -afy \
33-
&& chmod -R u+w /nextstrain/miniforge/envs/tb-profiler/share/
34-
36+
&& rm -rf ~/.cache \
37+
&& chmod -R 777 /nextstrain/miniforge
3538

3639
# Switch back to root. The entrypoint will drop to nextstrain:nextstrain as
3740
# necessary when a container starts.

0 commit comments

Comments
 (0)