docker-scripts/linux/ecosystem/retracker/Dockerfile

25 lines
592 B
Docker
Raw Normal View History

2022-05-23 16:25:23 +03:00
FROM epicmorg/debian:bullseye-develop as builder
RUN go get -v github.com/vvampirius/retracker/...
RUN retracker -v
FROM epicmorg/debian:bullseye
COPY --from=builder /go/bin/retracker /bin/retracker
ENV RETRACKER_PORT=80
ENV RETRACKER_MINUTS=180
ENV RETRACKER_DEBUG=false
ENV RETRACKER_REAL_IP=true
2022-05-27 00:25:52 +03:00
ENV RETRACKER_OPTS=
2022-05-23 16:25:23 +03:00
RUN retracker -v
EXPOSE ${RETRACKER_PORT}
2022-05-23 16:47:39 +03:00
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
2022-05-23 16:25:23 +03:00
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]