File: Dockerfile

package info (click to toggle)
snac2 2.85-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,732 kB
  • sloc: ansic: 21,478; sh: 179; makefile: 69; python: 34
file content (17 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ARG ALPINE_VERSION=latest

FROM alpine:${ALPINE_VERSION} AS builder
COPY . /build
RUN apk -U --no-progress --no-cache add curl-dev build-base && \
  cd /build && make && \
  make PREFIX="/build/out/usr/local" PREFIX_MAN="/build/out/usr/local/share/man" install && \
  chmod +x examples/docker-entrypoint.sh && \
  cp examples/docker-entrypoint.sh /build/out/usr/local/bin/entrypoint.sh

FROM alpine:${ALPINE_VERSION}
RUN apk -U --no-progress --no-cache add libcurl tzdata
COPY --from=builder /build/out /
EXPOSE 5050
VOLUME [ "/data" ]
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]