mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +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
|
||||
RUN apk update
|
||||
RUN apk add cargo
|
||||
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 \
|
||||
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
|
||||
CMD /agate --content /gmi/ \
|
||||
--hostname $GEMINI_HOST \
|
||||
--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…
Reference in a new issue