mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
added docker support
This commit is contained in:
parent
b6122cd2c0
commit
2e1800a375
2 changed files with 65 additions and 0 deletions
16
tools/docker/Dockerfile
Normal file
16
tools/docker/Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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 \
|
||||
--hostname $GEMINI_HOST \
|
||||
--lang $GEMINI_LANG
|
||||
Loading…
Add table
Add a link
Reference in a new issue