jaothan commited on
Commit
349a057
·
verified ·
1 Parent(s): 3acd11f

Update loader.Dockerfile

Browse files
Files changed (1) hide show
  1. loader.Dockerfile +34 -24
loader.Dockerfile CHANGED
@@ -1,24 +1,34 @@
1
- FROM langchain/langchain
2
-
3
- WORKDIR /app
4
-
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- curl \
8
- software-properties-common \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- COPY requirements.txt .
12
-
13
- RUN pip install --upgrade -r requirements.txt
14
-
15
- COPY loader.py .
16
- COPY utils.py .
17
- COPY chains.py .
18
- COPY images ./images
19
-
20
- EXPOSE 8502
21
-
22
- HEALTHCHECK CMD curl --fail http://localhost:8502/_stcore/health
23
-
24
- ENTRYPOINT ["streamlit", "run", "loader.py", "--server.port=8502", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM langchain/langchain
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ software-properties-common \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt .
12
+
13
+ RUN pip install --upgrade -r requirements.txt
14
+
15
+ COPY loader.py .
16
+ COPY utils.py .
17
+ COPY chains.py .
18
+ COPY images ./images
19
+
20
+ ARG UID=10001
21
+ RUN adduser \
22
+ --disabled-password \
23
+ --gecos "" \
24
+ --home "/nonexistent" \
25
+ --shell "/sbin/nologin" \
26
+ --no-create-home \
27
+ --uid "${UID}" \
28
+ appuser
29
+
30
+ EXPOSE 8502
31
+
32
+ HEALTHCHECK CMD curl --fail http://localhost:8502/_stcore/health
33
+
34
+ ENTRYPOINT ["streamlit", "run", "loader.py", "--server.port=8502", "--server.address=0.0.0.0"]