Commit 4792bc2
authored
FIX: Ensure USER has permissions for chmod in Dockerfile (#26)
* FIX: Ensure USER has permissions for chmod in Dockerfile
* For security reasons the default user in mambaorg/micromamba:1.4.9-bullseye-slim
is non-root with uid 1000 (mambauser) but this requires the user
permissions to be escalated to one with chmod powers. The simplest way
to do this is to chown to mambauser on COPY.
* To ensure that the micromamba environment is setup correctly on entry
fallback to the mambaorg/micromamba's base image ENTRYPOINT and set this
action's /entrypoint.sh as CMD.
- c.f. https://github.com/mamba-org/micromamba-docker/blob/604ebafb09543a3d852e437886f1c782f0367911/_entrypoint.sh
* MNT: Rename action's script from entrypoint.sh to cmd.sh for clarity
* As the action is relying on the mambaorg/micromamba container's
entrypoint to setup the shell environment correctly let this be
clearly the ENTRYPOINT and rename the action's entrypoint script to
cmd.sh as it is being passed as CMD.1 parent e09d83f commit 4792bc2
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | | - | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
File renamed without changes.
0 commit comments