Skip to content

Commit

Permalink
Ошибки компиляции для Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Kislenko Maksim committed Jul 24, 2019
1 parent fbaf3cc commit 3d5337c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paperio/dockers/rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM stor.highloadcup.ru/aicups/paperio_base
FROM stest.tech-mail.ru/aicups/paperio_base

RUN apt-get update -y && apt-get install -y build-essential curl && curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
ENV SOLUTION_CODE_PATH=/opt/client/solution \
SOLUTION_CODE_ENTRYPOINT=src/main.rs \
COMPILED_FILE_PATH=/opt/client/solution/target/release/solution \
COMPILATION_COMMAND="RUSTFLAGS=-Awarnings ~/.cargo/bin/cargo build --release --bin solution --manifest-path $SOLUTION_CODE_PATH/Cargo.toml" \
RUN_COMMAND="/lib64/ld-linux-x86-64.so.2 $MOUNT_POINT"
SOLUTION_CODE_ENTRYPOINT=src/main.rs \
COMPILED_FILE_PATH=/opt/client/solution/target/release/solution \
COMPILATION_COMMAND="RUSTFLAGS=-Awarnings ~/.cargo/bin/cargo build --release --bin solution --manifest-path $SOLUTION_CODE_PATH/Cargo.toml --quiet 2>&1" \
RUN_COMMAND="/lib64/ld-linux-x86-64.so.2 $MOUNT_POINT"

COPY Cargo.toml ./
RUN USER=user ~/.cargo/bin/cargo init --bin $SOLUTION_CODE_PATH &&\
Expand Down

0 comments on commit 3d5337c

Please sign in to comment.