ppsingh commited on
Commit
0334703
1 Parent(s): 875cede

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -7
Dockerfile CHANGED
@@ -1,19 +1,25 @@
1
  FROM python:3.10.12
2
 
3
- # create user
4
  RUN useradd -m -u 1000 user
5
- USER user
6
- ENV HOME=/home/user \
7
- PATH=/home/user/.local/bin:$PATH
 
 
 
 
 
 
 
8
 
9
  # setting workdir
10
- WORKDIR $HOME/app
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
- COPY --chown=user ./packages.txt packages.txt
14
 
15
  RUN pip3 install --no-cache-dir -r requirements.txt
16
- RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
17
 
18
 
19
  COPY --chown=user . /app
 
1
  FROM python:3.10.12
2
 
 
3
  RUN useradd -m -u 1000 user
4
+
5
+ WORKDIR /app
6
+ COPY ./packages.txt /app/packages.txt
7
+ RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
8
+
9
+ # create user
10
+
11
+ #USER user
12
+ #ENV HOME=/home/user \
13
+ # PATH=/home/user/.local/bin:$PATH
14
 
15
  # setting workdir
16
+ # WORKDIR $HOME/app
17
 
18
  COPY --chown=user ./requirements.txt requirements.txt
19
+ #COPY --chown=user ./packages.txt packages.txt
20
 
21
  RUN pip3 install --no-cache-dir -r requirements.txt
22
+ #RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
23
 
24
 
25
  COPY --chown=user . /app