judy4444 commited on
Commit
ac230c4
·
verified ·
1 Parent(s): 62803be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -2
Dockerfile CHANGED
@@ -1,4 +1,11 @@
1
- FROM python:3.11
 
 
 
 
 
 
 
2
 
3
 
4
  RUN useradd -m -u 1000 user
@@ -7,15 +14,18 @@ ENV PATH="/home/user/.local/bin:$PATH"
7
 
8
  WORKDIR /app
9
 
 
10
  COPY --chown=user requirements.txt /app/
 
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
- # download all data we may use
14
  RUN camel_data -i all
15
 
16
 
17
  COPY --chown=user . /app/
18
 
 
19
  EXPOSE 7860
20
 
21
 
 
1
+ FROM python:3.9
2
+
3
+
4
+ USER root
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ cmake \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
 
11
  RUN useradd -m -u 1000 user
 
14
 
15
  WORKDIR /app
16
 
17
+
18
  COPY --chown=user requirements.txt /app/
19
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
20
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
21
 
22
+
23
  RUN camel_data -i all
24
 
25
 
26
  COPY --chown=user . /app/
27
 
28
+
29
  EXPOSE 7860
30
 
31