-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
48 lines (30 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM arm64v8/python:3.10.11-buster AS build
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y gcc build-essential libgomp1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY requirements.txt .
RUN pip install --no-cache-dir --default-timeout=500 -r requirements.txt
COPY . .
# Set the PATH environment variable
ENV PATH="/usr/local/bin:${PATH}"
EXPOSE 8501
CMD [ "python","-m", "verse" ]
# FROM arm64v8/python:3.10.11-slim-buster
# # COPY --from=build /usr/include/x86_64-linux-gnu/ /usr/include/x86_64-linux-gnu/
# # COPY --from=build /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
# # copy only the dependencies installation from the 1st stage image
# # Copy the installed pip packages from Stage 2
# COPY --from=build /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
# # Copy the installed pip packages from Stage 2
# # COPY --from=dependencies /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
# # Install Streamlit
# COPY . .
# # Set the PATH environment variable
# ENV PATH="/usr/local/bin:${PATH}"
# EXPOSE 8501
# # CMD ["streamlit", "run", "verse/window.py"]
# CMD [ "python","-m", "verse" ]
# # CMD [ "verse/window.py", "--server.headless", "true", "--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false"]