Semaphore/deployment/docker/ci/dredd.Dockerfile
2020-10-01 05:39:35 +05:00

26 lines
551 B
Docker

FROM apiaryio/dredd:13.0.0
ENV SEMAPHORE_SERVICE=semaphore_ci \
SEMAPHORE_PORT=3000 \
MYSQL_SERVICE=mysql \
MYSQL_PORT=3306 \
PATH=/root/go/bin:${PATH}
RUN apk add --no-cache bash curl git go
RUN (cd /usr && curl -sL https://taskfile.dev/install.sh | sh)
# We need the source and task to compile the hooks
COPY . /semaphore/
WORKDIR /semaphore
RUN task deps:tools
RUN task deps:be
RUN task compile:be
RUN task compile:api:hooks
COPY deployment/docker/ci/dredd/entrypoint /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint"]