Skip to content

Commit

Permalink
install gtk as copy mecnanism for pyperclip; and verify install
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 4, 2024
1 parent 13c9562 commit ff2c33a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ RUN apt-get -yqq update && apt-get -yqq install \
python3-dev \
xclip \
xsel \
gtk \
&& rm -rf /var/lib/apt/lists/*


RUN xclip -version
RUN xsel --version

COPY . ./

# Install production dependencies.
RUN pip install --no-cache-dir -r requirements.txt

ENV DISPLAY=:0
RUN python3 -c "import pyperclip; pyperclip.copy('test'); print(pyperclip.paste())"

ENV HOST '0.0.0.0'
EXPOSE $PORT
HEALTHCHECK CMD curl --fail http://$HOST:$PORT/_stcore/health
Expand Down

0 comments on commit ff2c33a

Please sign in to comment.