Skip to content

Docs regarding Docker might be incorrect #804

@aberres

Description

@aberres

I am right now trying to figure out what is the best way to make some packages available in Docker images.

Before v1 we were doing some hackery with dev and a manually tweaked PATH.
Now that we have a stable release, it was time to revisit the official recommendations.

I tried to follow the docs but somehow failed.

The simple

FROM pkgxdev/pkgx
RUN env +node@16
RUN npm start

results in

 > [ 2/15] RUN env +node@16:
#0 0.092 env: '+node@16': No such file or directory
------
Dockerfile:2
--------------------
   1 |     FROM pkgxdev/pkgx
   2 | >>> RUN env +node@16
   3 |     RUN npm start
   4 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c env +node@16" did not complete successfully: exit code: 127

The same happens when trying to use RUN eval "$(curl -Ssf --proto '=https' https://pkgx.sh)"

As we see, the used shell is /bin/sh. Can this work at all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions