Skip to content

Commit

Permalink
chore(docker): add libxdo3
Browse files Browse the repository at this point in the history
  • Loading branch information
developerfred committed Nov 25, 2024
1 parent 11bbee7 commit f8bbcf0
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM rustlang/rust:nightly AS builder

FROM rustlang/rust:nightly as builder


RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
cmake \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y \
pkg-config \
libssl-dev \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
cmake \
libxdo-dev && \
rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app

Expand All @@ -35,21 +36,23 @@ RUN cargo build --release && \
FROM debian:bookworm-slim


RUN apt-get update && apt-get install -y \
ca-certificates \
libwebkit2gtk-4.0-37 \
libjavascriptcoregtk-4.0-18 \
libsoup2.4-1 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-x \
libgtk-3-0 \
curl \
librsvg2-2 \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y \
ca-certificates \
libwebkit2gtk-4.0-37 \
libjavascriptcoregtk-4.0-18 \
libsoup2.4-1 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-x \
libgtk-3-0 \
curl \
librsvg2-2 \
libxdo3 && \
rm -rf /var/lib/apt/lists/*


COPY --from=builder /usr/src/app/target/release/url-to-png-service /usr/local/bin/
COPY --from=builder /usr/src/app/target/release/titanium /usr/local/bin/

EXPOSE 3000

Expand Down

0 comments on commit f8bbcf0

Please sign in to comment.