forked from reductstore/reductstore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 674 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:22.04 AS builder
RUN apt-get update && apt-get install -y \
build-essential \
curl \
protobuf-compiler
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Add .cargo/bin to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /src
COPY reductstore reductstore
COPY reduct_rs reduct_rs
COPY reduct_base reduct_base
COPY reduct_macros reduct_macros
COPY .cargo .cargo
COPY Cargo.toml Cargo.toml
COPY Cargo.lock Cargo.lock
ARG GIT_COMMIT=unspecified
RUN GIT_COMMIT=${GIT_COMMIT} cargo build --release
FROM ubuntu:22.04
COPY --from=builder /src/target/release/reductstore /usr/local/bin/reductstore
EXPOSE 8383
RUN mkdir /data
CMD ["reductstore"]