forked from tag1consulting/goose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 831 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM rust:1-slim-buster AS base
LABEL maintainer="Narayan Newton <nnewton@tag1consulting.com>"
LABEL org.label-schema.vendor="Tag1 Consulting" \
org.label-schema.url="https://github.com/tag1consulting/goose" \
org.label-schema.name="Goose" \
org.label-schema.version="mainline" \
org.label-schema.vcs-url="github.com:tag1consulting/goose.git" \
org.label-schema.docker.schema-version="1.0"
ENV GOOSE_EXAMPLE=umami \
GOOSE_FEATURES="gaggle"
ARG DEBIAN_FRONTEND=noninteractive
COPY . /build
WORKDIR ./build
RUN apt-get update && \
apt-get install -y libssl-dev gcc pkg-config cmake && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cargo build --features "${GOOSE_FEATURES}" --release --example "${GOOSE_EXAMPLE}"
RUN chmod +x ./docker-entrypoint.sh
EXPOSE 5115
ENTRYPOINT ["./docker-entrypoint.sh"]