Files
docker-images/rust-webapp/Dockerfile

25 lines
580 B
Docker

FROM catthehacker/ubuntu:rust-latest
WORKDIR /app
ARG NODE_VERSION=24
# install curl
RUN apt update && apt install curl -y
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN echo "NVM_DIR=/root/.nvm" | tee -a /etc/environment
# install node
RUN bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
# download static bin
ADD https://get.nexte.st/latest/linux cargo-nextest.tar.gz
# unpack and install
RUN tar xzf cargo-nextest.tar.gz -C ${CARGO_HOME:-~/.cargo}/bin
# clean up
RUN rm cargo-nextest.tar.gz