-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (23 loc) · 859 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM rust:alpine
ENV PATH="/aarch64-linux-musl-cross/bin:/usr/local/cargo/bin/rustup:/root/.cargo/bin:$PATH" \
RUSTFLAGS="-C target-feature=-crt-static" \
CC="clang" \
CXX="clang++" \
GN_EXE=gn
RUN apk add --update --no-cache nodejs yarn bash clang wget cmake git openssh make perl pkgconfig openssl-dev curl gcc musl-dev linux-headers libatk-1.0 gtk+3.0-dev pkgconf glib-dev
WORKDIR /tmp
RUN curl -fLO "https://www.openssl.org/source/openssl-1.1.1m.tar.gz"
RUN tar xvzf "openssl-1.1.1m.tar.gz"
WORKDIR /tmp/openssl-1.1.1m
RUN ./config -fPIC
RUN make -j$(nproc) depend
RUN make -j$(nproc)
RUN make -j$(nproc) install_sw
ENV OPENSSL_LIB_DIR=/usr/local/lib
ENV OPENSSL_INCLUDE_DIR=/usr/include/openssl
ENV OPENSSL_STATIC=yes
WORKDIR /build
RUN mkdir /ssh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT /entrypoint.sh