2023-10-21 14:33:42 -07:00
|
|
|
FROM golang:1.21.3-alpine3.18 as builder
|
2022-05-04 15:51:24 -06:00
|
|
|
|
|
|
|
ARG GITCOMMIT=docker
|
|
|
|
ARG GITDATE=docker
|
|
|
|
ARG GITVERSION=docker
|
|
|
|
|
|
|
|
RUN apk add make jq git gcc musl-dev linux-headers
|
|
|
|
|
|
|
|
COPY ./proxyd /app
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN make proxyd
|
|
|
|
|
2023-10-21 14:33:42 -07:00
|
|
|
FROM alpine:3.18
|
2022-05-04 15:51:24 -06:00
|
|
|
|
2023-10-19 10:35:32 -07:00
|
|
|
RUN apk add bind-tools jq curl bash git redis
|
2023-10-12 10:55:14 -07:00
|
|
|
|
2022-05-04 15:51:24 -06:00
|
|
|
COPY ./proxyd/entrypoint.sh /bin/entrypoint.sh
|
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add ca-certificates && \
|
|
|
|
chmod +x /bin/entrypoint.sh
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
VOLUME /etc/proxyd
|
|
|
|
|
|
|
|
COPY --from=builder /app/bin/proxyd /bin/proxyd
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/entrypoint.sh"]
|
|
|
|
CMD ["/bin/proxyd", "/etc/proxyd/proxyd.toml"]
|