1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/flowgger/Dockerfile

31 lines
731 B
Docker
Raw Normal View History

2023-04-10 17:45:38 +02:00
#
# Dockerfile for flowgger
#
FROM rust:1.68-alpine AS builder
WORKDIR /usr/src/flowgger
RUN set -xe \
&& apk add --no-cache curl tar musl-dev libressl-dev capnproto-dev \
&& curl -sSL https://github.com/awslabs/flowgger/archive/refs/heads/master.tar.gz | tar xz --strip 1
RUN set -xe \
&& cargo build --release \
&& strip target/release/flowgger \
&& target/release/flowgger --version
FROM alpine:3
MAINTAINER EasyPi Software Foundation
WORKDIR /opt/flowgger
COPY --from=builder /usr/src/flowgger/target/release/flowgger bin/flowgger
COPY --from=builder /usr/src/flowgger/flowgger.toml etc/flowgger.toml
RUN apk add --no-cache libssl3 && bin/flowgger --version
ENTRYPOINT ["bin/flowgger"]
CMD ["etc/flowgger.toml"]