-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
42 lines (37 loc) · 858 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
41
42
FROM python:3.10-slim
WORKDIR /opt/blur
# Dependencies
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
# * Pillow
libffi-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libjpeg-turbo-progs \
libjpeg62-turbo-dev \
liblcms2-dev \
libopenjp2-7-dev \
libtiff5-dev \
libwebp-dev \
libssl-dev \
meson \
netpbm \
xvfb \
zlib1g-dev \
# * sgblur
libturbojpeg0-dev \
libjpeg-turbo-progs \
exiftran \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt ./
RUN pip install -r ./requirements.txt
# Source files
COPY ./src ./src
COPY ./scripts ./scripts
COPY ./models ./models
COPY ./demo.html ./
COPY ./docker/docker-entrypoint.sh ./
RUN chmod +x ./docker-entrypoint.sh
# Expose service
EXPOSE 8001
ENTRYPOINT ["./docker-entrypoint.sh"]