From e0c547314db82dde9c026d2b1d593b011c527897 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:37:51 -0800 Subject: [PATCH] update Dockerfile and requirements.txt --- Dockerfile | 8 ++++++-- requirements.txt | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3720020..0e6a6dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,18 @@ FROM alpine:latest # Install dependencies -RUN apk update && apk add git build-base linux-headers python3 python3-dev py3-pip chromium chromium-chromedriver +RUN apk update && apk add git build-base linux-headers python3 python3-dev py3-pip py3-opencv chromium chromium-chromedriver # Set working directory WORKDIR /app +# Create virtual environment +# RUN python3 -m venv .venv +# ENV PATH="/app/.venv/bin:$PATH" + # Install pip dependencies COPY requirements.txt . -RUN python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt +RUN pip3 install --break-system-packages -r requirements.txt # Copy source code COPY . . diff --git a/requirements.txt b/requirements.txt index b687e64..163d671 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,3 @@ pytz git+https://github.com/muskit/tweety.git tweepy tweet-capture -opencv-python-headless