Skip to content

Commit 4197463

Browse files
committed
🚧 try umask 000 before creating env
1 parent 4e016d1 commit 4197463

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ ENV PATH="/nextstrain/miniforge/bin:$PATH"
1414
# Initialize conda for interactive shell use
1515
RUN conda init bash
1616

17+
# FIXME: is `umask 000` ok to use here?
18+
# This allows commands like `tb-profiler update_tbdb` to write to
19+
# /nextstrain/miniforge/envs/tb-profiler/share/tbprofiler/
20+
1721
# Create conda environments
1822
COPY --chown=nextstrain:nextstrain envs/snippy.yaml /tmp/
19-
RUN conda env create --name snippy --file /tmp/snippy.yaml && rm /tmp/snippy.yaml
23+
RUN umask 000 && conda env create --name snippy --file /tmp/snippy.yaml && rm /tmp/snippy.yaml
2024

2125
COPY --chown=nextstrain:nextstrain envs/tb-profiler.yaml /tmp/
22-
RUN conda env create --name tb-profiler --file /tmp/tb-profiler.yaml && rm /tmp/tb-profiler.yaml
26+
RUN umask 000 && conda env create --name tb-profiler --file /tmp/tb-profiler.yaml && rm /tmp/tb-profiler.yaml
2327

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

0 commit comments

Comments
 (0)