forked from valeriansaliou/raider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (21 loc) · 674 Bytes
/
Dockerfile
File metadata and controls
33 lines (21 loc) · 674 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
29
30
31
32
33
FROM rustlang/rust:nightly-buster AS build
WORKDIR /app
COPY . /app
RUN rustup --version
RUN rustup install nightly-2021-01-07 && \
rustup default nightly-2021-01-07
RUN rustc --version && \
rustup --version && \
cargo --version
RUN apt-get update
RUN apt-get install -y libssl-dev default-libmysqlclient-dev
RUN cargo clean && cargo build --release
RUN strip ./target/release/raider
FROM debian:buster-slim
RUN apt-get update
RUN apt-get install -y libssl1.1 libmariadb3
WORKDIR /usr/src/raider
COPY ./res/assets/ ./res/assets/
COPY --from=build /app/target/release/raider /usr/local/bin/raider
CMD [ "raider", "-c", "/etc/raider.cfg" ]
EXPOSE 8080