1ec5ba338a
goddamn ubuntu and their snap reqs
21 lines
399 B
Docker
21 lines
399 B
Docker
FROM alpine:latest
|
|
|
|
# Install dependencies
|
|
RUN apk update && apk add git build-base linux-headers python3 python3-dev py3-pip chromium chromium-chromedriver
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install pip dependencies
|
|
COPY requirements.txt .
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Mount working directory
|
|
VOLUME ./run
|
|
|
|
# Run the bot
|
|
CMD ["python3", "src/main.py"]
|