Spaces:
Sleeping
Sleeping
add rust to dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -15,6 +15,11 @@ ENV UVICORN_WS_PROTOCOL=websockets
|
|
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}"
|
|
|
15 |
# Set the working directory
|
16 |
WORKDIR $HOME/app
|
17 |
|
18 |
+
# Install curl (required for rustup)
|
19 |
+
USER root
|
20 |
+
RUN apt-get update && apt-get install -y curl
|
21 |
+
USER user
|
22 |
+
|
23 |
# Install Rust using rustup
|
24 |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
25 |
ENV PATH="/home/user/.cargo/bin:${PATH}"
|