2021-12-01 04:53:38 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for semaphore-arm64
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM debian:bullseye
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
2022-02-28 08:37:40 +02:00
|
|
|
ARG APP_VERSION=2.8.53
|
|
|
|
ARG APP_ARCH=arm64
|
|
|
|
ARG APP_FILE=semaphore_${APP_VERSION}_linux_${APP_ARCH}.deb
|
|
|
|
ARG APP_URL=https://github.com/ansible-semaphore/semaphore
|
|
|
|
ARG APP_PACKAGE_URL=${APP_URL}/releases/download/v${APP_VERSION}/${APP_FILE}
|
|
|
|
ARG APP_WRAPPER_URL=${APP_URL}/raw/v${APP_VERSION}/deployment/docker/common/semaphore-wrapper
|
2021-12-01 04:53:38 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt update \
|
|
|
|
&& apt install -y ansible netcat tini wget \
|
|
|
|
&& wget ${APP_PACKAGE_URL} -O ${APP_FILE} \
|
|
|
|
&& wget ${APP_WRAPPER_URL} -O /usr/bin/semaphore-wrapper \
|
|
|
|
&& chmod +x /usr/bin/semaphore-wrapper \
|
|
|
|
&& (dpkg -i ${APP_FILE} || apt -f install -y) \
|
|
|
|
&& rm -rf ${APP_FILE} /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
|
|
|
CMD ["/usr/bin/semaphore-wrapper", "/usr/bin/semaphore", "--config", "/etc/semaphore/config.json"]
|