Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rust CI Image
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Infrastructure Components
Rust CI Image
Commits
74ba4b9d
Verified
Commit
74ba4b9d
authored
3 months ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Include node for building frontend assets
parent
ee469690
No related branches found
Branches containing commit
Tags
1.82-node-22
Tags containing commit
No related merge requests found
Pipeline
#657
passed with stage
in 1 minute and 42 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+14
-2
14 additions, 2 deletions
Dockerfile
with
14 additions
and
2 deletions
Dockerfile
+
14
−
2
View file @
74ba4b9d
...
...
@@ -4,7 +4,11 @@ ARG USERNAME=rustbuilder
ARG
USER_UID=1000
ARG
USER_GID=$USER_UID
ARG
RUST_VERSION=1.82
ARG
RUST_VERSION
ARG
NODE_VERSION
ENV
RUST_VERSION=${RUST_VERSION:-1.82}
ENV
NODE_VERSION=${NODE_VERSION:-22.11.0}
RUN
groupadd
--gid
$USER_GID
$USERNAME
\
&&
useradd
--uid
$USER_UID
--gid
$USER_GID
-m
$USERNAME
...
...
@@ -18,9 +22,17 @@ RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \
USER
$USERNAME
ENV
NVM_DIR=/home/${USERNAME}/.nvm
RUN
curl
-o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
install
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm use v
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
alias
default v
${
NODE_VERSION
}
RUN
rustup
install
$RUST_VERSION
&&
\
rustup default
$RUST_VERSION
&&
\
rustup
install
nightly
&&
\
cargo
install
cargo-binstall junitify cargo-nextest
ENV
PATH=$PATH:/home/$USERNAME/.cargo/bin
\ No newline at end of file
ENV
PATH="${PATH}:/home/${USERNAME}/.cargo/bin:${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment