update Dockerfile and requirements.txt
This commit is contained in:
+6
-2
@@ -1,14 +1,18 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
# Install dependencies
|
# 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
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Create virtual environment
|
||||||
|
# RUN python3 -m venv .venv
|
||||||
|
# ENV PATH="/app/.venv/bin:$PATH"
|
||||||
|
|
||||||
# Install pip dependencies
|
# Install pip dependencies
|
||||||
COPY requirements.txt .
|
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 source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ pytz
|
|||||||
git+https://github.com/muskit/tweety.git
|
git+https://github.com/muskit/tweety.git
|
||||||
tweepy
|
tweepy
|
||||||
tweet-capture
|
tweet-capture
|
||||||
opencv-python-headless
|
|
||||||
|
|||||||
Reference in New Issue
Block a user