File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 55# Build image #
66# ################
77
8- FROM rust:1.60 AS build
8+ FROM ubuntu:22.04 as build
9+
10+ RUN apt-get update -y && \
11+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
12+ g++ \
13+ curl \
14+ ca-certificates \
15+ libc6-dev \
16+ make \
17+ libssl-dev \
18+ pkg-config \
19+ git \
20+ cmake \
21+ zlib1g-dev
22+
23+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
24+ --default-toolchain stable --profile minimal -y
925
1026COPY . .
11- RUN cargo test --release --all
12- RUN cargo build --release
27+ RUN bash -c 'source $HOME/. cargo/env && cargo test --release --all'
28+ RUN bash -c 'source $HOME/. cargo/env && cargo build --release'
1329
1430# #################
1531# Output image #
1632# #################
1733
18- FROM ubuntu:latest AS binary
34+ FROM ubuntu:22.04 AS binary
1935
2036RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
2137 ca-certificates
You can’t perform that action at this time.
0 commit comments