Sha256: c68566b2b1d41701c7d297e133b133b5f1229cfa9d4a341ae819bdc1e1fbb829

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

FROM alpine:3.11.6 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 fetch all

FROM alpine:3.11.6 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

1 entries across 1 versions & 1 rubygems

Version Path
betterlog-0.13.0 Dockerfile