-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 1.07 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
FROM debian:stable-slim
# Install Packages
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y wget supervisor && \
if [ ! -e '/bin/systemctl' ]; then ln -s /bin/echo /bin/systemctl; fi && \
rm -rf /var/lib/apt/lists/*
# Perms
RUN adduser --system --home /omnidb --no-create-home omnidb && \
mkdir -p /omnidb && \
mkdir -p /omnidb-config && \
chown -R omnidb.root /omnidb && \
chown -R omnidb.root /omnidb-config && \
chown -R omnidb.root /run
WORKDIR /omnidb
ARG OMNIDB_VERSION=2.15.0
ENV OMNIDB_VERSION=$OMNIDB_VERSION
# Install Omnidb
RUN wget -q https://github.com/OmniDB/OmniDB/releases/download/${OMNIDB_VERSION}/omnidb-server_${OMNIDB_VERSION}-debian-amd64.deb && \
dpkg -i omnidb-server_${OMNIDB_VERSION}-debian-amd64.deb && \
rm -rf omnidb-server_${OMNIDB_VERSION}-debian-amd64.deb
# Configs
COPY ./docker-config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./docker-config/omnidb.conf /omnidb-config/omnidb.conf
USER omnidb
EXPOSE 8081 25482
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]