forked from valeriansaliou/vigil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 711 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 711 Bytes
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
FROM rustlang/rust:nightly-buster AS build
RUN apt-get update
RUN apt-get install -y musl-tools
RUN rustup --version
RUN rustup target add x86_64-unknown-linux-musl
RUN rustc --version && \
rustup --version && \
cargo --version
WORKDIR /app
COPY . /app
RUN cargo clean && cargo build --release --target x86_64-unknown-linux-musl
RUN strip ./target/x86_64-unknown-linux-musl/release/vigil
FROM alpine:latest
WORKDIR /usr/src/vigil
COPY ./res/assets/ ./res/assets/
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/vigil /usr/local/bin/vigil
CMD [ "vigil", "-c", "/etc/vigil.cfg" ]
EXPOSE 8080