Categories
SumoCoders Tech

Use Volta in docker images

Use volta in custom docker images

Volta, the Hassle-Free JavaScript Tool Manager, see volta.sh for more information.

At SumoCoders we use custom docker images to build assets in a CI pipeline. Therefore I had to install Volta in our docker image.

Not very difficult, just add:

# Install Volta
RUN curl https://get.volta.sh | bash

But that does not work, you also need to add some ENV variables:

# Install Volta
RUN curl https://get.volta.sh | bash
ENV VOLTA_HOME "/root/.volta"
ENV PATH "$VOLTA_HOME/bin:$PATH"

That does the job.

Useful links