Skip to content

Commit

Permalink
add initial Dockerfile (#11)
Browse files Browse the repository at this point in the history
fixes the release action
  • Loading branch information
ldemailly committed Oct 22, 2023
1 parent 2a03489 commit 85c6a35
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Go releaser dockerfile
FROM alpine as certs
RUN apk update && apk add ca-certificates
FROM scratch
COPY slack-proxy /usr/bin/slack-proxy
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# Some of this borrowed from fortiotel's Dockerfile - would need to use tracing for this to be useful
# TODO: add tracing?
ENV OTEL_SERVICE_NAME "slack-proxy"
# Assumes you added --collector.otlp.enabled=true to your Jaeger deployment
ENV OTEL_EXPORTER_OTLP_ENDPOINT http://jaeger-collector.istio-system.svc.cluster.local:4317
EXPOSE 9090
EXPOSE 8080
# configmap (dynamic flags)
VOLUME /etc/slack-proxy
# data files etc
VOLUME /var/lib/slack-proxy
WORKDIR /var/lib/slack-proxy
ENTRYPOINT ["/usr/bin/slack-proxy"]
# TODO: Need to pass the token as secret or env
CMD ["-config-dir", "/etc/slack-proxy"]

0 comments on commit 85c6a35

Please sign in to comment.