10 lines
378 B
Docker
10 lines
378 B
Docker
FROM archlinux:base-devel
|
|
RUN pacman -Sy --noconfirm geckodriver firefox xorg-server-xvfb
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
COPY . ./StackScraper
|
|
WORKDIR StackScraper
|
|
RUN cargo build --release
|
|
ENV DISPLAY=:99
|
|
ENTRYPOINT Xvfb :99 -ac &>/dev/null & export DISPLAY=:99 && geckodriver &>/dev/null & ./target/release/stackscraper
|