monra commited on
Commit
744c9a3
1 Parent(s): b349869

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -22
Dockerfile CHANGED
@@ -1,22 +1,23 @@
1
- # Build stage
2
- FROM python:3.8-alpine AS build
3
-
4
- WORKDIR /app
5
-
6
- COPY requirements.txt requirements.txt
7
- RUN apk add --no-cache build-base && \
8
- pip3 install --user --no-cache-dir -r requirements.txt
9
-
10
- COPY . .
11
-
12
- # Production stage
13
- FROM python:3.8-alpine AS production
14
-
15
- WORKDIR /app
16
-
17
- COPY --from=build /root/.local /root/.local
18
- COPY . .
19
-
20
- ENV PATH=/root/.local/bin:$PATH
21
-
22
- CMD ["python3", "./run.py"]
 
 
1
+ # Build stage
2
+ FROM python:3.10-slim-buster AS build
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt requirements.txt
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && \
9
+ pip3 install --user --no-cache-dir -r requirements.txt
10
+
11
+ COPY . .
12
+
13
+ # Production stage
14
+ FROM python:3.10-slim-buster AS production
15
+
16
+ WORKDIR /app
17
+
18
+ COPY --from=build /root/.local /root/.local
19
+ COPY . .
20
+
21
+ ENV PATH=/root/.local/bin:$PATH
22
+
23
+ CMD ["python3", "./run.py"]