mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-17 07:58:34 +03:00
docker updates
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# pull official base image 3.9
|
||||
FROM python:3.9.5-slim-buster
|
||||
# FROM python:3.9.5-slim-buster
|
||||
From python:3.10
|
||||
|
||||
# set work directory
|
||||
WORKDIR /usr/src/app
|
||||
@@ -9,7 +10,13 @@ ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --upgrade pip && \
|
||||
apt-get update && \
|
||||
apt-get install -y gcc ffmpeg fonts-noto firefox-esr && \
|
||||
wget https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux64.tar.gz && \
|
||||
tar -xvzf geckodriver* -C /usr/local/bin && \
|
||||
chmod +x /usr/local/bin/geckodriver && \
|
||||
rm geckodriver-v*
|
||||
COPY ./requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user