CSAle commited on
Commit
d2febb0
·
1 Parent(s): 9f98d36

Space Commit

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,11 +1,24 @@
1
  # Get a distribution that has uv already installed
2
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
3
 
 
 
 
 
 
 
 
 
 
4
  # Add user - this is the user that will run the app
5
  # If you do not set user, the app will run as root (undesirable)
6
  RUN useradd -m -u 1000 user
7
  USER user
8
 
 
 
 
 
9
  # Set the home directory and path
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
 
1
  # Get a distribution that has uv already installed
2
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
3
 
4
+ # Add Rust compiler installation
5
+ USER root
6
+ RUN apt-get update && apt-get install -y \
7
+ curl \
8
+ build-essential \
9
+ && rm -rf /var/lib/apt/lists/*
10
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
11
+ ENV PATH="/root/.cargo/bin:${PATH}"
12
+
13
  # Add user - this is the user that will run the app
14
  # If you do not set user, the app will run as root (undesirable)
15
  RUN useradd -m -u 1000 user
16
  USER user
17
 
18
+ # Set up Rust for the user
19
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
20
+ ENV PATH="/home/user/.cargo/bin:${PATH}"
21
+
22
  # Set the home directory and path
23
  ENV HOME=/home/user \
24
  PATH=/home/user/.local/bin:$PATH