nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

Dockerfile (804B)


      1 # https://codeberg.org/grunfink/snac2/src/branch/master/Dockerfile
      2 ARG ALPINE_VERSION=latest
      3 
      4 FROM docker.io/alpine:${ALPINE_VERSION} AS builder
      5 
      6 ARG SNAC_VERSION="2.81"
      7 ENV SNAC_VERSION="$SNAC_VERSION"
      8 
      9 # Download latest release
     10 RUN mkdir -p /build
     11 RUN wget -qO snac.tar.gz https://codeberg.org/grunfink/snac2/archive/${SNAC_VERSION}.tar.gz
     12 RUN tar --strip-components=1 -C /build -xf snac.tar.gz
     13 
     14 # Install snac
     15 RUN apk -U --no-progress --no-cache add curl-dev build-base && \
     16   cd /build && make && \
     17   make PREFIX="/build/out/usr/local" PREFIX_MAN="/build/out/usr/local/share/man" install
     18 
     19 # Run snac
     20 FROM docker.io/alpine:${ALPINE_VERSION}
     21 RUN apk -U --no-progress --no-cache add libcurl
     22 COPY --from=builder /build/out /
     23 EXPOSE 5050
     24 VOLUME [ "/data" ]
     25 CMD [ "/bin/sh", "-c", "snac httpd /data/data" ]