-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
25 lines (22 loc) · 1.23 KB
/
Containerfile
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
FROM python:3.11
#RUN mkdir -p /app
#RUN chown kvuser /app
#USER kvuser
USER root
WORKDIR /app
COPY requirements.txt .
#RUN curl --location -k -v -o formattedInstTypesCollection.json 'https://www.dropbox.com/scl/fi/8o1u066dt2il5xyznpvp7/formattedInstTypesCollectionCopy.json?rlkey=4rxvzq1e3toacorr78wvemc9c&st=actfsd0f&dl=0'
RUN curl --location -k -v -o formattedInstTypesCollection.json 'https://www.dropbox.com/scl/fi/v8m85n85e3kjui5ziz8c8/VirtualMachineInstancetypes_updated.json?rlkey=ppx42kbpnjavkapmpxxc4bvxr&st=hnh8k42p&dl=0'
#RUN curl --location -k -v -o formattedPrefCollection.json 'https://www.dropbox.com/scl/fi/3q4cd4gl3pbm1t691ru6t/formattedPrefCollection.json?rlkey=crmv2utqrr3zv0cyqkjm3fyrf&st=gquho7tw&dl=0'
RUN curl --location -k -v -o formattedPrefCollection.json 'https://www.dropbox.com/scl/fi/yq8st30ax0ur7kdlpu65t/VirtualMachinePreferences_updated.json?rlkey=9tl2gv8nf8vcobeqgy6c1p2om&st=lohcipuu&dl=0'
RUN pip install --upgrade pip
RUN pip install --default-timeout=100 --no-cache-dir --upgrade -r /app/requirements.txt
COPY app.py .
COPY kvagent.py .
COPY kvtypes.py .
COPY vmpreferences.py .
COPY vminstancetypes.py .
COPY bootableSources.py .
EXPOSE 8501
ENV HF_HUB_CACHE=/app/models/
ENTRYPOINT [ "streamlit", "run" ,"app.py" ]