File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ ENV LANG=en_US.UTF-8 \
1313COPY --chmod=755 <<'EOF' /usr/local/bin/pkgx_env
1414# !/bin/sh
1515set -eu
16- PKGX_DEPS=$(pkgx yq eval '.dependencies | to_entries | map("+" + .key + "@" + (.value | sub("^="; ""))) | join(" ")' .pkgx.yaml)
16+
17+ CONFIG_PATH="/usr/local/bin/.pkgx.yaml"
18+ PKGX_DEPS=$(pkgx yq eval '.dependencies | to_entries | map("+" + .key + "@" + (.value | sub("^="; ""))) | join(" ")' "$CONFIG_PATH" )
1719exec pkgx $PKGX_DEPS "$@"
1820EOF
21+ COPY .pkgx.yaml /usr/local/bin/
1922
2023FROM base AS build
2124WORKDIR /action/workspace
2225
23- # System dependencies
24- COPY .pkgx.yaml .
25-
2626# Mix dependencies
2727COPY mix.exs mix.lock ./
2828RUN pkgx_env mix deps.get && pkgx_env mix deps.compile
@@ -35,8 +35,6 @@ RUN pkgx_env mix escript.build
3535FROM base AS release
3636WORKDIR /usr/local/bin
3737
38- COPY --from=build /root/.pkgx /root/.pkgx
39- COPY --from=build /action/workspace/.pkgx.yaml /usr/local/bin/.pkgx.yaml
4038COPY --from=build /action/workspace/elixir_script /usr/local/bin/elixir_script
4139
4240ENTRYPOINT ["pkgx_env" , "/usr/local/bin/elixir_script" ]
You can’t perform that action at this time.
0 commit comments