forked from cquest/sgblur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 824 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
FROM bitnami/pytorch:2.2.1-debian-12-r0
WORKDIR /opt/blur
USER 0
# Dependencies
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# * Pillow
libffi-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
liblcms2-dev \
libopenjp2-7-dev \
libtiff5-dev \
libwebp-dev \
gcc \
libgl1 \
# * sgblur
libturbojpeg0-dev \
libjpeg-turbo-progs \
exiftran \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt ./
RUN pip install --no-cache-dir -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"]