updating docker tools (#56)

updated the docker run command, changing the -d options to -v.
added a start.sh file and edited the Dockerfile.
This commit is contained in:
cpnfeeny 2021-04-15 17:31:33 +02:00 committed by GitHub
parent ac5b030ec2
commit 578f9ca276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,8 @@
FROM alpine:latest
RUN apk add cargo && wget https://github.com/mbrubeck/agate/archive/refs/tags/v3.0.2.tar.gz && tar xzf v3.0.2.tar.gz && mv /agate-3.0.2 /agate && cd agate && cargo build --release
CMD /agate --content /gmi/ \
--hostname $GEMINI_HOST \
--lang $GEMINI_LANG
RUN cp /agate/target/release/agate /usr/bin/agate
WORKDIR /app
COPY . /app
ADD . .
ENTRYPOINT ["/bin/sh", "start.sh"]