-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
40 lines (26 loc) · 815 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
38
39
40
FROM ubuntu:20.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install tzdata
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y build-essential libopencv-dev python3-opencv ffmpeg bc
RUN apt-get update && \
apt-get install -y python3 python3-pip
COPY requirements.txt .
RUN pip3 install -r requirements.txt
# Install gosu
RUN set -eux; \
apt-get update; \
apt-get install -y gosu; \
rm -rf /var/lib/apt/lists/*; \
# verify that the binary works
gosu nobody true
RUN useradd app
COPY src /app/src
WORKDIR /app
RUN mkdir PROCESSING_ZONE
RUN cd src/disk && make
RUN cd src/page && make
RUN cd src/pymdb && python3 setup.py install
COPY . /app
RUN chown -R app:app /app
ENV PYTHONUNBUFFERED 1
ENTRYPOINT ["/app/docker-entrypoint.sh", "/app/movinyl.py"]