2022-05-17 22:39:46 -07:00
|
|
|
FROM python:3.8
|
|
|
|
|
|
|
|
# needed by xvfb
|
|
|
|
ENV DISPLAY :99
|
|
|
|
|
|
|
|
WORKDIR /hellen-one
|
|
|
|
|
|
|
|
# Copy all files
|
2022-05-18 13:22:58 -07:00
|
|
|
COPY . ./
|
|
|
|
|
2022-05-17 22:39:46 -07:00
|
|
|
# Install all system dependencies
|
|
|
|
RUN apt-get update && apt-get install -y python3-dev gcc g++ libc-dev libffi-dev libcairo2-dev libjpeg-dev zlib1g-dev xvfb libx11-dev
|
|
|
|
|
|
|
|
# Install all python dependencies
|
|
|
|
RUN pip install --no-cache-dir -r bin/requirements.txt
|
|
|
|
|
2022-05-18 13:45:26 -07:00
|
|
|
# Make it executable
|
|
|
|
RUN chmod a+x run_tests.sh
|
|
|
|
|
2022-05-17 22:39:46 -07:00
|
|
|
# Run!
|
|
|
|
CMD [ "/bin/bash", "run_tests.sh" ]
|