DataHoarder
c000a83682
All checks were successful
continuous-integration/drone/push Build is passing
22 lines
577 B
Docker
22 lines
577 B
Docker
FROM debian:bullseye
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt update && \
|
|
DEBIAN_FRONTEND=noninteractive apt install -y \
|
|
git build-essential \
|
|
golang
|
|
|
|
RUN git clone --depth 1 https://github.com/cloudflare/go.git /src/go && cd /src/go && \
|
|
cd src && \
|
|
./all.bash
|
|
RUN DEBIAN_FRONTEND=noninteractive apt remove -y golang && \
|
|
DEBIAN_FRONTEND=noninteractive apt autoremove -y
|
|
|
|
ENV PATH "$PATH:/src/go/bin"
|
|
|
|
COPY . /src/orbeat
|
|
|
|
WORKDIR /src/orbeat
|
|
RUN go build -o orbeat . && mv orbeat /usr/bin && rm -rf /src/orbeat
|
|
WORKDIR /
|
|
|
|
ENTRYPOINT ["/usr/bin/orbeat"] |