Skip to content

Commit 0ee1ead

Browse files
Revise build to fix libssl breakage (#1616)
1 parent 9dca721 commit 0ee1ead

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Dockerfile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,33 @@
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

1026
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'
1329

1430
##################
1531
# Output image #
1632
##################
1733

18-
FROM ubuntu:latest AS binary
34+
FROM ubuntu:22.04 AS binary
1935

2036
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
2137
ca-certificates

0 commit comments

Comments
 (0)