File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
.git
3
3
test-token.txt
4
4
.token
5
- Dockerfile. *
5
+ Dockerfile *
6
+ Dockerfile
6
7
Makefile
Original file line number Diff line number Diff line change 1
- FROM rust :latest as buildenv
1
+ FROM ubuntu :latest as rustenv
2
2
3
3
ARG IS_LOCAL=0
4
4
ARG VERSION=main
5
5
ARG IS_TAG=0
6
6
7
7
COPY . /code
8
8
WORKDIR /code
9
+ RUN apt-get update -qq && apt-get install curl pkg-config build-essential libssl-dev ca-certificates -y && apt-get autoclean -y && apt-get clean -y
10
+ RUN curl -sSL sh.rustup.rs >/usr/local/bin/rustup-dl && chmod +x /usr/local/bin/rustup-dl && /usr/local/bin/rustup-dl -y --default-toolchain stable
11
+
12
+ FROM rustenv as buildenv
13
+
9
14
RUN sh cargo-docker.sh
10
15
11
16
FROM debian:latest
12
-
13
- RUN apt-get update -qq && apt-get install libssl1.1 ca-certificates -y && apt-get autoclean -y && apt-get clean -y
14
- COPY --from=buildenv /usr/local/cargo/bin/zeronsd /usr/bin/zeronsd
17
+ COPY --from=buildenv /root/.cargo/bin/zeronsd /usr/bin/zeronsd
15
18
16
19
ENTRYPOINT ["/usr/bin/zeronsd" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ export PATH=" ${HOME} /.cargo/bin:${PATH} "
4
+
3
5
if [ " ${IS_LOCAL} " != 0 ]
4
6
then
5
7
cargo install --path .
You can’t perform that action at this time.
0 commit comments