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 5
5
# Build image #
6
6
# ################
7
7
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
9
25
10
26
COPY . .
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'
13
29
14
30
# #################
15
31
# Output image #
16
32
# #################
17
33
18
- FROM ubuntu:latest AS binary
34
+ FROM ubuntu:22.04 AS binary
19
35
20
36
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
21
37
ca-certificates
You can’t perform that action at this time.
0 commit comments