-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.local
25 lines (18 loc) · 1 KB
/
Dockerfile.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM public.ecr.aws/lambda/python:3.12.2024.10.30.16-x86_64 AS build
RUN dnf install -y unzip && \
curl -Lo "/tmp/chromedriver-linux64.zip" "https://storage.googleapis.com/chrome-for-testing-public/130.0.6723.91/linux64/chromedriver-linux64.zip" && \
curl -Lo "/tmp/chrome-linux64.zip" "https://storage.googleapis.com/chrome-for-testing-public/130.0.6723.91/linux64/chrome-linux64.zip" && \
unzip /tmp/chromedriver-linux64.zip -d /opt/ && \
unzip /tmp/chrome-linux64.zip -d /opt/
FROM public.ecr.aws/lambda/python:3.12.2024.10.30.16-x86_64
RUN dnf install -y atk cups-libs gtk3 libXcomposite alsa-lib \
libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \
libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \
xorg-x11-xauth dbus-glib dbus-glib-devel nss mesa-libgbm
ENV TOURIST_VERSION=local
COPY --from=build /opt/chrome-linux64 /tourist/browser
COPY --from=build /opt/chromedriver-linux64 /tourist/browser
WORKDIR /local
COPY . .
RUN pip install .[app]
ENTRYPOINT [ "tourist" ]