-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (32 loc) · 1.54 KB
/
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 python:3.10-slim-bullseye
ENV KAKADU_APPS_LOCATION s3://dlcs-dlcservices-bootstrap-objects/kdu77-apps.tar.gz
ENV APPETISER_DIR /opt/appetiser
ENV TMPDIR $APPETISER_DIR/tmp
ENV OUTPUT_DIR $APPETISER_DIR/out/
ENV HTTP_TIMEOUT 60
RUN apt-get update -y && apt-get install -y cmake \
netpbm \
ghostscript \
libffi-dev \
libjpeg-turbo-progs \
libtiff5-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libfreetype6-dev \
liblcms2-dev \
libwebp-dev \
tcl8.6-dev \
tk8.6-dev \
python3-tk \
libharfbuzz-dev \
libfribidi-dev
COPY requirements.txt $APPETISER_DIR/requirements.txt
RUN pip3 install --no-cache-dir -r $APPETISER_DIR/requirements.txt
COPY . $APPETISER_DIR
RUN chmod +x $APPETISER_DIR/run_tests.sh
RUN chmod +x $APPETISER_DIR/run_appetiser.sh
LABEL org.opencontainers.image.source=https://github.com/dlcs/appetiser
RUN mkdir $TMPDIR $OUTPUT_DIR
WORKDIR $APPETISER_DIR
EXPOSE 80
CMD $APPETISER_DIR/run_appetiser.sh