-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (25 loc) · 909 Bytes
/
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
FROM python:3.10
WORKDIR /src
ARG SKIP_MODELS_DOWNLOAD=true
RUN mkdir -p /src/bin
COPY bin/recops-download-models.sh /src/bin/recops-download-models.sh
RUN bash -c 'if [ $SKIP_MODELS_DOWNLOAD ]; then echo skip model download; else bash /src/bin/recops-download-models.sh;fi'
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0
COPY requirements.txt /src
RUN pip install -r requirements.txt
COPY bin/recops /src/bin/recops
COPY recops /src/recops
COPY setup.py /src/setup.py
COPY LICENSE.md /src/LICENSE.md
COPY README.md /src/README.md
RUN python setup.py install
EXPOSE 5000
RUN mkdir -p /var/lib/recops
VOLUME /var/lib/recops
ENV STORAGE_URI=file:///var/lib/recops/data
ENV DATABASE_URI=sqlite:////var/lib/recops/recops.db
ENTRYPOINT ["/usr/local/bin/recops"]
CMD ["--help"]