-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 719 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 719 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 rust AS builder
WORKDIR /src
COPY . .
RUN chown -R 1000:1000 /src
RUN cargo build --release
FROM archlinux
RUN pacman -Syu --noconfirm \
texlive-basic \
texlive-latexrecommended \
texlive-latexextra \
texlive-fontsextra
RUN pacman -S --noconfirm inotify-tools
COPY --from=builder /src/target/release/curriculust /usr/bin/curriculust
COPY --from=builder /src/build.sh /usr/bin/curriculust-watch
RUN sed -i 's#cargo run --#/usr/bin/curriculust#' /usr/bin/curriculust-watch
RUN sed -i 's#"./src/" "./resume_cv_proc_macro"##' /usr/bin/curriculust-watch
WORKDIR /src
RUN useradd -u 1000 user -M -d /src
RUN chown -R 1000:1000 /src
USER 1000:1000
ENTRYPOINT ["/usr/bin/curriculust-watch"]