File: Dockerfile

package info (click to toggle)
carbon-c-relay 3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,604 kB
  • sloc: ansic: 8,354; sh: 1,401; yacc: 924; lex: 354; python: 112; makefile: 110
file content (24 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.6

MAINTAINER Fabian Groffen

RUN mkdir -p /opt/carbon-c-relay-build

RUN mkdir /etc/carbon-c-relay

COPY . /opt/carbon-c-relay-build

RUN \
  apk --no-cache update && \
  apk --no-cache upgrade && \
  apk --no-cache add git bc build-base curl && \
  cd /opt/carbon-c-relay-build && \
  ./configure; make && \
  cp relay /usr/bin/carbon-c-relay && \
  apk del --purge git bc build-base ca-certificates curl && \
  rm -rf /opt/* /tmp/* /var/cache/apk/* /opt/carbon-c-relay-build

EXPOSE 2003

ENTRYPOINT ["carbon-c-relay", "-f", "/etc/carbon-c-relay/carbon-c-relay.conf"]