MVPilgrim commited on
Commit
28b6dcf
·
1 Parent(s): d803a4a
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -1,4 +1,9 @@
1
  ###############################################################################
 
 
 
 
 
2
  #python environment, main app and startup script.
3
  FROM python:3.11.5
4
  #FROM python:3.11.9-slim
@@ -14,6 +19,7 @@ RUN echo "\n\n############################################# Dockerfile #########
14
 
15
  #RUN apt-get install musl-dev
16
  #COPY /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
 
17
  COPY --from=debian:latest /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
18
 
19
  WORKDIR /app
@@ -26,6 +32,7 @@ COPY ./startup.sh /app/startup.sh
26
  COPY ./.streamlit/main.css /app/.streamlit/main.css
27
  COPY ./app.py /app/app.py
28
  RUN chmod 755 /app/startup.sh
 
29
 
30
  COPY ./multi-qa-MiniLM-L6-cos-v1 /app/multi-qa-MiniLM-L6-cos-v1
31
 
 
1
  ###############################################################################
2
+
3
+ FROM debian:latest as debmusl
4
+ RUN apt-get update
5
+ RUN apt-get install musl
6
+
7
  #python environment, main app and startup script.
8
  FROM python:3.11.5
9
  #FROM python:3.11.9-slim
 
19
 
20
  #RUN apt-get install musl-dev
21
  #COPY /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
22
+
23
  COPY --from=debian:latest /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
24
 
25
  WORKDIR /app
 
32
  COPY ./.streamlit/main.css /app/.streamlit/main.css
33
  COPY ./app.py /app/app.py
34
  RUN chmod 755 /app/startup.sh
35
+ COPY --from=/usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
36
 
37
  COPY ./multi-qa-MiniLM-L6-cos-v1 /app/multi-qa-MiniLM-L6-cos-v1
38