Skip to content

Added ability to build over multiple architectures (arm64/amd64) #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 <[email protected]>"
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