-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
35 lines (27 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
31
32
33
34
35
FROM fedora:26
LABEL description="TryItOnline Offline Image https://tryitonline.net" maintainer="Andrew Savinykh<andrew@tryitonline.nz>"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ARG TINI_VER=0.14.0
COPY rootfs /
RUN chmod +x /usr/local/bin/* \
&& dnf update -y \
&& dnf install -y git wget dnf-plugins-core openssh-server glibc-locale-source python gettext \
&& pip install --upgrade pip \
&& pip install supervisor \
&& /usr/libexec/openssh/sshd-keygen ed25519 \
&& localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 || true \
&& cd /tmp \
&& wget -q https://github.com/krallin/tini/releases/download/v$TINI_VER/tini_$TINI_VER.rpm \
&& dnf install -y tini_$TINI_VER.rpm \
&& git clone https://github.com/TryItOnline/tiosetup.git /opt/tiosetup \
&& cd /opt/tiosetup \
&& cp /opt/tiodocker/config.docker /opt/tiosetup/private/config \
&& /opt/tiosetup/bootstrap \
&& dnf clean all \
&& rm -rf /tmp/* \
&& rm -f /run/nologin
VOLUME /etc/httpd /srv
EXPOSE 80 81
CMD ["tini","--","startup"]