-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (30 loc) · 1.06 KB
/
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
29
30
31
32
33
# syntax=docker/dockerfile:1.2
#
# firearweave builder
FROM golang:buster as firearweave-builder
COPY . firehose-arweave
RUN --mount=type=cache,target=/var/cache/apk \
--mount=type=cache,target=/go/pkg \
cd firehose-arweave \
&& rm -rf .git \
&& git init \
&& go install -v -ldflags "-X main.Version=$version" \
./cmd/firearweave
# thegarii builder
FROM rust:buster as thegarii-builder
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN --mount=type=cache,target=/var/cache/apk \
--mount=type=cache,target=/home/rust/.cargo \
rustup component add rustfmt \
&& cargo install thegarii
# firearweave
FROM debian:stable-slim as firearweave-release
COPY --from=firearweave-builder /go/bin/firearweave /usr/bin/firearweave
COPY --from=thegarii-builder /usr/local/cargo/bin/thegarii /usr/bin/thegarii
COPY ./devel/standard/standard.yaml config.yaml
RUN apt-get update \
&& apt-get install ca-certificates -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["firearweave", "-c", "config.yaml", "start"]