Semaphore/Dockerfile
Alexander Trost 5b68136b63 Improve the docker entrypoint and dockerfile
Improve the Dockerfile build speed and space by flattening all to one
layer

Added env var in Dockerfile for version and arch of semaphore

Show error message when the playbook path can't be created
2017-03-14 18:49:07 +01:00

16 lines
567 B
Docker

FROM alpine:3.5
ENV SEMAPHORE_VERSION="2.2.0" SEMAPHORE_ARCH="linux_amd64"
RUN apk add --no-cache git ansible mysql-client curl openssh-client && \
curl -sSfL "https://github.com/ansible-semaphore/semaphore/releases/download/v$SEMAPHORE_VERSION/semaphore_$SEMAPHORE_ARCH" > /usr/bin/semaphore && \
chmod +x /usr/bin/semaphore && mkdir -p /etc/semaphore/playbooks
EXPOSE 3000
ADD semaphore-startup.sh /usr/bin/semaphore-startup.sh
ENTRYPOINT ["/usr/bin/semaphore-startup.sh"]
CMD ["/usr/bin/semaphore", "-config", "/etc/semaphore/semaphore_config.json"]