peeyushsinghal commited on
Commit
61ea99f
·
verified ·
1 Parent(s): 777200d

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +24 -0
dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Install Rust
10
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
11
+ && source $HOME/.cargo/env \
12
+ && echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
13
+
14
+ # Set PATH for Rust
15
+ ENV PATH="/root/.cargo/bin:${PATH}"
16
+
17
+ # Set the working directory
18
+ WORKDIR /home/user/app
19
+
20
+ # Copy requirements file
21
+ COPY requirements.txt .
22
+
23
+ # Install Python dependencies
24
+ RUN pip install --no-cache-dir -r requirements.txt