-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 550 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 550 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
####
# Build haylxon
####
FROM rust:1.85-slim-bullseye as builder
WORKDIR /usr/src/
# RUN rustup target add x86_64-unknown-linux-musl
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release
RUN strip target/release/hxn
####
#Begin final image
####
#copy rust build
FROM debian:bullseye-slim as release
WORKDIR /app
COPY --from=builder /usr/src/target/release/hxn .
# install chrome
RUN apt update
RUN apt -y install chromium
RUN ln -s /usr/bin/chromium /usr/bin/chrome
RUN mkdir /app/hxnshots
USER 1000
ENTRYPOINT ["/app/hxn"]