Skip to content

Commit

Permalink
rustc 1.60
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Apr 27, 2022
1 parent 2f76ee0 commit 4ba9c0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM rust:1-alpine3.15 as builder
FROM rust:1.60-alpine3.15 as builder
# This is important, see https://github.com/rust-lang/docker-rust/issues/85
ENV RUSTFLAGS="-C target-feature=-crt-static"
ENV RUST_BACKTRACE=full

WORKDIR /app
COPY ./ /app

RUN apk add --no-cache musl-dev git cmake
RUN apk add --no-cache musl-dev git cmake make g++
RUN cargo build --release --bin stat_server
RUN strip /app/target/release/stat_server

Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.cloud
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM rust:1-alpine3.15 as builder
FROM rust:1.60-alpine3.15 as builder
# This is important, see https://github.com/rust-lang/docker-rust/issues/85
ENV RUSTFLAGS="-C target-feature=-crt-static"
ENV RUST_BACKTRACE=full

WORKDIR /app
COPY ./ /app

RUN apk add --no-cache musl-dev git cmake
RUN apk add --no-cache musl-dev git cmake make g++
RUN cargo build --release --bin stat_server
RUN strip /app/target/release/stat_server

Expand Down

0 comments on commit 4ba9c0c

Please sign in to comment.