fix: update Dockerfile to set correct installation path and permissions for mise

This commit is contained in:
2026-03-06 00:56:17 +07:00
parent d8f7c8fc19
commit 7f2c4ab50d
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ ENV TOOLS_DIR="${TOOLS_DIR}"
ENV MISE_DATA_DIR="${TOOLS_DIR}"
ENV MISE_CONFIG_DIR="${TOOLS_DIR}/config"
ENV MISE_CACHE_DIR="${TOOLS_DIR}/cache"
ENV MISE_INSTALL_PATH=/usr/local/bin/mise
ENV MISE_INSTALL_PATH="${TOOLS_DIR}/bin/mise"
ENV PATH="${TOOLS_DIR}/shims:${PATH}"
ENV MISE_GITHUB_ATTESTATIONS=false
ENV MISE_VERSION=${MISE_VERSION}
@@ -25,5 +25,5 @@ COPY mise.toml ${TOOLS_DIR}/config/mise.toml
RUN sh -c "\
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
&& mise install \
&& chmod 755 ${TOOLS_DIR}/shims/* \
&& chmod 755 ${TOOLS_DIR}/bin/mise ${TOOLS_DIR}/shims/* \
"

View File

@@ -42,10 +42,10 @@ services:
- dev-tools:/tools:ro
```
Add `/tools/shims` to `PATH` in your container's Dockerfile:
Add `/tools/shims` and `/tools/bin` to `PATH` in your container's Dockerfile:
```dockerfile
ENV PATH="/tools/shims:${PATH}"
ENV PATH="/tools/shims:/tools/bin:${PATH}"
```
All dev-tools are now available in your container.