forked from golemfactory/ya-vm-file-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (22 loc) · 688 Bytes
/
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
FROM debian:stable
RUN apt-get update
RUN apt-get install -y curl build-essential socat
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /ya-vm-file-server
RUN rustup default nightly
RUN rustup default stable
COPY Cargo.toml .
COPY Cargo.lock .
COPY src ./src
COPY tests ./tests
RUN cargo build --release --bin ya-vm-file-server --features="build-binary"
RUN cargo +nightly test --release --no-run
RUN mkdir mnt_tests
WORKDIR /work
COPY docker_client_start.sh .
COPY docker_client_external_start.sh .
COPY docker_server_start.sh .
RUN mkdir ./server_root_fs
RUN mkdir ./client_fs
VOLUME /golem/input /golem/output