add rust-webapp container

This commit is contained in:
2025-07-25 10:12:54 +01:00
parent 2affa20b35
commit 884c749039
2 changed files with 106 additions and 0 deletions

18
rust-webapp/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM catthehacker/ubuntu:rust-latest
WORKDIR /app
COPY . .
# credit https://github.com/catthehacker/docker_images
RUN /app/install-node.sh
RUN rm install-node.sh
# 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