forked from iconik-io/iconik-storage-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 1.01 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
FROM ubuntu:jammy
LABEL org.opencontainers.image.authors="[email protected]"
RUN apt-get update && \
apt-get install -y ffmpeg imagemagick poppler-utils ghostscript dcraw exiftool locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
COPY ./install-iconik.sh /tmp/install-iconik.sh
RUN /tmp/install-iconik.sh
RUN \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm /tmp/install-iconik.sh
# Allows any user to write files like log files, pid files, etc.
# Permissions will be different for data directory,
# as it will be a bind mount.
RUN \
chmod 777 -R /var/iconik/iconik_storage_gateway && \
chmod 777 -R /var/log/iconik/iconik_storage_gateway
VOLUME /var/iconik/iconik_storage_gateway/data
ENTRYPOINT /opt/iconik/iconik_storage_gateway/iconik_storage_gateway \
--iconik-url=${ICONIK_URL:-https://app-lb.iconik.io/} \
--auth-token=${AUTH_TOKEN} \
--app-id=${APP_ID} \
--storage-id=${STORAGE_ID}