mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
fix: update Dockerfile to set correct installation path and permissions for mise
This commit is contained in:
@@ -13,7 +13,7 @@ ENV TOOLS_DIR="${TOOLS_DIR}"
|
|||||||
ENV MISE_DATA_DIR="${TOOLS_DIR}"
|
ENV MISE_DATA_DIR="${TOOLS_DIR}"
|
||||||
ENV MISE_CONFIG_DIR="${TOOLS_DIR}/config"
|
ENV MISE_CONFIG_DIR="${TOOLS_DIR}/config"
|
||||||
ENV MISE_CACHE_DIR="${TOOLS_DIR}/cache"
|
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 PATH="${TOOLS_DIR}/shims:${PATH}"
|
||||||
ENV MISE_GITHUB_ATTESTATIONS=false
|
ENV MISE_GITHUB_ATTESTATIONS=false
|
||||||
ENV MISE_VERSION=${MISE_VERSION}
|
ENV MISE_VERSION=${MISE_VERSION}
|
||||||
@@ -25,5 +25,5 @@ COPY mise.toml ${TOOLS_DIR}/config/mise.toml
|
|||||||
RUN sh -c "\
|
RUN sh -c "\
|
||||||
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
|
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
|
||||||
&& mise install \
|
&& mise install \
|
||||||
&& chmod 755 ${TOOLS_DIR}/shims/* \
|
&& chmod 755 ${TOOLS_DIR}/bin/mise ${TOOLS_DIR}/shims/* \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ services:
|
|||||||
- dev-tools:/tools:ro
|
- 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
|
```dockerfile
|
||||||
ENV PATH="/tools/shims:${PATH}"
|
ENV PATH="/tools/shims:/tools/bin:${PATH}"
|
||||||
```
|
```
|
||||||
|
|
||||||
All dev-tools are now available in your container.
|
All dev-tools are now available in your container.
|
||||||
|
|||||||
Reference in New Issue
Block a user