Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM centos:8

ARG TARGETARCH

LABEL Maintainer="Robert de Bock <robert@meinit.nl>"
LABEL Description="Base CentOS OpenSSH server image"
LABEL CentOS="8"
Expand All @@ -11,10 +13,15 @@ LABEL build_date="2023-06-13"

ENV TINI_VERSION v0.19.0

ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TARGETARCH} /tini

EXPOSE 22

RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*


# This containers function is specifically to run/test ssh, ignore hints
# about having openssh in a Dockerfile.
# "WARNING: installing SSH in a container is not recommended.
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/bin/bash
#!/bin/bash

# Making all required files if they are not existing. (This means
# you may add a Docker volume on /etc/ssh or /root to insert your
Expand Down