docker: move Dockerfile to server and wikibase folder

and change builder image to rust:1-buster
as recommended in https://github.com/oxigraph/oxigraph/pull/41#discussion_r456384441
pull/41/head
maxlath 4 years ago
parent cccae695a4
commit 94f2bc4929
  1. 4
      docker/publish_docker_images.sh
  2. 2
      server/Dockerfile
  3. 13
      wikibase/Dockerfile

@ -4,8 +4,8 @@ if [[ -z ./Dockerfile ]] ; then
exit 1
fi
cat Dockerfile | docker build -t oxigraph/oxigraph -
cat Dockerfile | sed s/oxigraph_server/oxigraph_wikibase/g | docker build -t oxigraph/oxigraph-wikibase -
cat server/Dockerfile | docker build -t oxigraph/oxigraph -
cat wikibase/Dockerfile | docker build -t oxigraph/oxigraph-wikibase -
docker push oxigraph/oxigraph:latest
docker push oxigraph/oxigraph-wikibase:latest

@ -1,4 +1,4 @@
FROM rust:1.44 as builder
FROM rust:1-buster as builder
RUN apt-get update && \
apt-get install clang -y && \

@ -0,0 +1,13 @@
FROM rust:1-buster as builder
RUN apt-get update && \
apt-get install clang -y && \
git clone https://github.com/oxigraph/oxigraph --depth 1 && \
cd oxigraph && \
cargo build --release
FROM debian:buster-slim
COPY --from=builder /oxigraph/target/release/oxigraph_wikibase /usr/local/bin/oxigraph_wikibase
ENTRYPOINT [ "/usr/local/bin/oxigraph_wikibase" ]
Loading…
Cancel
Save