mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
changed dockerfile to use binary
This commit is contained in:
parent
2e1800a375
commit
bae20c9f3c
2 changed files with 2 additions and 13 deletions
|
|
@ -1,16 +1,5 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk update
|
RUN wget https://github.com/mbrubeck/agate/releases/download/v3.0.2/agate.$(uname -m)-unknown-linux-gnu.gz && gunzip agate.$(uname -m)-unknown-linux-gnu.gz && mv agate.$(uname -m)-unknown-linux-gnu /agate && ls && chmod +x /agate
|
||||||
RUN apk add cargo
|
CMD /agate --content /gmi/ \
|
||||||
RUN wget https://github.com/mbrubeck/agate/archive/refs/tags/v3.0.2.tar.gz
|
|
||||||
RUN tar xzf v3.0.2.tar.gz
|
|
||||||
RUN ls /
|
|
||||||
RUN mv /agate-3.0.2 /agate
|
|
||||||
WORKDIR "/agate"
|
|
||||||
RUN ls
|
|
||||||
RUN cargo build --release
|
|
||||||
RUN mkdir /gmi/
|
|
||||||
CMD /agate/target/release/agate --content /gmi/ \
|
|
||||||
--addr [::]:1965 \
|
|
||||||
--addr 0.0.0.0:1965 \
|
|
||||||
--hostname $GEMINI_HOST \
|
--hostname $GEMINI_HOST \
|
||||||
--lang $GEMINI_LANG
|
--lang $GEMINI_LANG
|
||||||
|
|
|
||||||
BIN
tools/docker/agate.x86_64-unknown-linux-gnu
Executable file
BIN
tools/docker/agate.x86_64-unknown-linux-gnu
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue