forked from madageomapping/cockpit-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 1.05 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
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG COCKPIT_VERSION
LABEL org.opencontainers.image.title Cockpit
LABEL org.opencontainers.image.description The easy-to-use, integrated, glanceable, and open web-based interface for your servers
LABEL org.opencontainers.image.licenses MIT
LABEL org.opencontainers.image.url https://github.com/realk1ko/cockpit-container
LABEL maintainer realk1ko <[email protected]>
ADD ./container /
ADD ./LICENSE /
RUN set -euo pipefail && \
mkdir -p /usr/local/libexec/ && \
curl -o /usr/local/libexec/cockpit-auth-ssh-key https://raw.githubusercontent.com/cockpit-project/cockpit/main/containers/ws/cockpit-auth-ssh-key && \
dnf install -y supervisor cockpit-ws-${COCKPIT_VERSION} cockpit-bridge-${COCKPIT_VERSION} python3 openssh-clients && \
dnf clean all && \
echo "NAME=default\nID=default" > /etc/os-release && \
chmod 755 /usr/local/bin/* && \
chmod 755 /usr/local/libexec/*
ENV COCKPIT_SSH_KEY_PATH /etc/cockpit/identity
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]