Fixed the Dockefile (dependencies and default command), and put it in the root folder to be able to build from the local oxigraph crate.
parent
95f30b8327
commit
2d7e156b20
@ -0,0 +1,21 @@ |
|||||||
|
FROM rust:1-buster as builder |
||||||
|
|
||||||
|
RUN apt-get update && \ |
||||||
|
apt-get install -y libclang-dev clang |
||||||
|
|
||||||
|
COPY . /oxigraph |
||||||
|
WORKDIR /oxigraph/server |
||||||
|
RUN cargo build --release |
||||||
|
|
||||||
|
|
||||||
|
FROM debian:buster-slim |
||||||
|
LABEL org.opencontainers.image.source="https://github.com/oxigraph/oxigraph" |
||||||
|
|
||||||
|
RUN apt-get update && \ |
||||||
|
apt-get install -y ca-certificates && \ |
||||||
|
rm -rf /var/lib/apt/lists/* |
||||||
|
|
||||||
|
COPY --from=builder /oxigraph/target/release/oxigraph_server /usr/local/bin/oxigraph_server |
||||||
|
|
||||||
|
ENTRYPOINT [ "/usr/local/bin/oxigraph_server" ] |
||||||
|
CMD [ "--location", "/data", "serve", "--bind", "0.0.0.0:7878" ] |
@ -1,11 +0,0 @@ |
|||||||
FROM rust:1-buster as builder |
|
||||||
|
|
||||||
COPY . /oxigraph |
|
||||||
RUN cd /oxigraph/server && cargo build --release |
|
||||||
|
|
||||||
FROM debian:buster-slim |
|
||||||
|
|
||||||
RUN apt-get update && apt-get install ca-certificates -y && rm -rf /var/lib/apt/lists/* |
|
||||||
COPY --from=builder /oxigraph/target/release/oxigraph_server /usr/local/bin/oxigraph_server |
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/oxigraph_server" ] |
|
Loading…
Reference in new issue