1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/semaphore/arm64/Dockerfile
2021-12-01 10:53:38 +08:00

28 lines
896 B
Docker

#
# Dockerfile for semaphore-arm64
#
FROM debian:bullseye
MAINTAINER EasyPi Software Foundation
ENV APP_VERSION=2.8.22
ENV APP_ARCH=arm64
ENV APP_FILE=semaphore_${APP_VERSION}_linux_${APP_ARCH}.deb
ENV APP_URL=https://github.com/ansible-semaphore/semaphore
ENV APP_PACKAGE_URL=${APP_URL}/releases/download/v${APP_VERSION}/${APP_FILE}
ENV APP_WRAPPER_URL=${APP_URL}/raw/v${APP_VERSION}/deployment/docker/common/semaphore-wrapper
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"]