Created
April 27, 2022 10:26
-
-
Save oprietop/f8c588bfec78af49f9b70bebd2b3d75d to your computer and use it in GitHub Desktop.
Dockefile for carbon-c-relay that passed hadolint check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.15 AS builder | |
COPY . /opt/carbon-c-relay-build | |
WORKDIR /opt/carbon-c-relay-build | |
RUN \ | |
apk add --no-cache git=2.34.2-r0 bc=1.07.1-r1 build-base=0.5-r2 curl=7.80.0-r0 automake=1.16.4-r1 autoconf=2.71-r0 libtool=2.4.6-r7 && \ | |
./configure && make | |
FROM alpine:3.15 | |
RUN mkdir /etc/carbon-c-relay | |
COPY --from=builder /opt/carbon-c-relay-build/relay /usr/bin/carbon-c-relay | |
EXPOSE 2003 | |
ENTRYPOINT ["/usr/bin/carbon-c-relay", "-f", "/etc/carbon-c-relay/carbon-c-relay.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment