Sha256: efedf3ef46e61285ae1458e156a827dd02a1f8bd6d4975bfd3dee9d15e0fb248

Contents?: true

Size: 903 Bytes

Versions: 4

Compression:

Stored size: 903 Bytes

Contents

FROM alpine:3.14.2 AS builder

# Update/Upgrade/Add packages for building

RUN apk add --no-cache bash git go build-base

# Build happening

WORKDIR /build/betterlog

ADD . .

ENV GOPATH=/build/betterlog/gospace

RUN make clobber

RUN go get -u github.com/betterplace/go-init

RUN make setup all

FROM alpine:3.14.2 AS runner

# Update/Upgrade/Add packages

RUN apk add --no-cache bash ca-certificates

RUN apk add --no-cache tzdata && \
  cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
  echo Europe/Berlin >/etc/timezone && \
  apk del tzdata

ARG APP_DIR=/app

RUN adduser -h ${APP_DIR} -s /bin/bash -D appuser

RUN mkdir -p /opt/bin

COPY --from=builder --chown=appuser:appuser /build/betterlog/gospace/bin/go-init /build/betterlog/betterlog-server /opt/bin/

ENV PATH /opt/bin:${PATH}

EXPOSE 5514

CMD [ "/opt/bin/go-init", "-pre", "/bin/sleep 3", "-main", "/opt/bin/betterlog-server" ]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
betterlog-0.20.2 Dockerfile
betterlog-0.20.1 Dockerfile
betterlog-0.20.0 Dockerfile
betterlog-0.19.0 Dockerfile