-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.21 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 ubuntu:22.04
# Read the release version from the build args
ARG RELEASE_TAG
LABEL build="JusteReseau - Version: ${RELEASE_TAG}"
LABEL org.opencontainers.image.description="This is a docker image for Ombi, that work with Kubernetes security baselines."
LABEL org.opencontainers.image.licenses="WTFPL"
LABEL org.opencontainers.image.source="https://github.com/justereseau/Ombi"
LABEL maintainer="JusteSonic"
# Install requirements
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget libicu70 \
&& apt-get autoremove -y && apt clean && rm -rf /var/lib/apt/lists/*
# Download and install the binary
RUN mkdir /opt/ombi \
&& wget -O /tmp/binary.tar.gz https://github.com/Ombi-app/Ombi/releases/download/v${RELEASE_TAG}/linux-x64.tar.gz \
&& tar -xvzf /tmp/binary.tar.gz -C /opt/ombi \
&& rm -rf /tmp/*
# Ensure the Servarr user and group exists and set the permissions
RUN adduser --system --uid 1000 --group --disabled-password servarr \
&& mkdir -p /config && chown -R servarr:servarr /config \
&& chown -R servarr:servarr /opt/ombi
# Set the user
USER servarr
# Expose the port
EXPOSE 3579
WORKDIR /opt/ombi
# Set the command
CMD ["/opt/ombi/Ombi", "--storage=/config", "--host=http://*:3579"]