koffiwind commited on
Commit
f897581
·
1 Parent(s): 2210481

add rust to dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
-
2
  # Get a distribution that has uv already installed
3
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
4
 
@@ -13,10 +12,13 @@ ENV HOME=/home/user \
13
 
14
  ENV UVICORN_WS_PROTOCOL=websockets
15
 
16
-
17
  # Set the working directory
18
  WORKDIR $HOME/app
19
 
 
 
 
 
20
  # Copy the app to the container
21
  COPY --chown=user . $HOME/app
22
 
@@ -28,4 +30,4 @@ RUN uv sync
28
  EXPOSE 7860
29
 
30
  # Run the app
31
- CMD ["uv", "run", "chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  # Get a distribution that has uv already installed
2
  FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
3
 
 
12
 
13
  ENV UVICORN_WS_PROTOCOL=websockets
14
 
 
15
  # Set the working directory
16
  WORKDIR $HOME/app
17
 
18
+ # Install Rust using rustup
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
  # Copy the app to the container
23
  COPY --chown=user . $HOME/app
24
 
 
30
  EXPOSE 7860
31
 
32
  # Run the app
33
+ CMD ["uv", "run", "chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]