Bikyla commited on
Commit
a6033b2
·
verified ·
1 Parent(s): 763456f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -9
Dockerfile CHANGED
@@ -1,21 +1,26 @@
1
  FROM python:3.12-slim
2
 
3
- WORKDIR /LastProject
 
 
 
4
 
5
- COPY requirements.txt .
 
 
6
 
7
  RUN apt-get update && apt-get install -y libgomp1
8
 
9
  RUN pip install -r requirements.txt
10
 
11
- COPY Frez.jpg .
12
- COPY Main.jpg .
13
- COPY Toch.jpg .
14
- COPY model.pkl .
15
- COPY scaler.pkl .
16
- COPY df.csv .
17
 
18
- COPY streamlit_app.py .
19
 
20
  EXPOSE 8501
21
 
 
1
  FROM python:3.12-slim
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV HOME=/home/user \
6
+ PATH=/home/user/.local/bin:$PATH
7
 
8
+ WORKDIR $HOME/app
9
+
10
+ COPY --chown=user requirements.txt .
11
 
12
  RUN apt-get update && apt-get install -y libgomp1
13
 
14
  RUN pip install -r requirements.txt
15
 
16
+ COPY --chown=user Frez.jpg .
17
+ COPY --chown=user Main.jpg .
18
+ COPY --chown=user Toch.jpg .
19
+ COPY --chown=user model.pkl .
20
+ COPY --chown=user scaler.pkl .
21
+ COPY --chown=user df.csv .
22
 
23
+ COPY --chown=user streamlit_app.py .
24
 
25
  EXPOSE 8501
26