docker updates

This commit is contained in:
msramalho
2023-02-24 17:09:32 +01:00
parent f6b116554f
commit f3d8c999fc
8 changed files with 1280 additions and 168 deletions

View File

@@ -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