-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (29 loc) · 1.16 KB
/
Dockerfile
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
FROM rustlang/rust:nightly AS builder
WORKDIR /proxy-reencyption
COPY . /proxy-reencyption
ARG RUST_VERSION=1.64.0-nightly
ARG RUST_NIGHTLY=nightly-2022-05-15
RUN apt-get update && \
apt-get -y install apt-utils cmake pkg-config libssl-dev git clang libclang-dev && \
rustup uninstall nightly && \
rustup install $RUST_NIGHTLY && \
mv /usr/local/rustup/toolchains/nightly* /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu && \
mkdir -p /proxy-reencyption/.cargo
ENV CARGO_HOME=/proxy-reencyption/.cargo
RUN cargo build --release
EXPOSE 8000 5005
ENTRYPOINT ["./target/release/proxy-reencyption-enclave-app", "client", "--cid", "3", "--port", "5005"]
##CMD ["./target/release/proxy-reencyption-enclave-app client --cid 3 --port 5005"]
#FROM debian:buster-slim
#LABEL maintainer="[email protected]"
#
##RUN apt-get update && \
## apt-get install -y ca-certificates openssl curl && \
## mkdir -p /root/.local/share/proxy-reencyption && \
## ln -s /root/.local/share/proxy-reencyption /data
#
#COPY --from=builder /target/release/proxy-reencyption-enclave-app .
#
#
#
#CMD ["proxy-reencyption-enclave-app -- client --cid 3 --port 5005"]