-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGoatFile
41 lines (30 loc) · 1.35 KB
/
GoatFile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM python:3.10-alpine
LABEL org.opencontainers.image.title="ScrapeGoat"
LABEL org.opencontainers.image.description="ScrapeGoat is the ultimate web scraping tool, powered by AI steroids."
LABEL org.opencontainers.image.vendor="Atonomic"
LABEL org.opencontainers.image.source=https://github.com/atonomic/scrapegoat
LABEL org.opencontainers.image.url=https://github.com/atonomic/scrapegoat
LABEL org.opencontainers.image.licenses=Apache
LABEL maintainer="ScrapeGoat Team [email protected]"
LABEL version="0.1.0"
ENV USER=goat
RUN apk update && apk add --no-cache \
bash build-base dbus-x11 libffi-dev py3-pip python3 shadow \
tcl tcl-dev tk tk-dev ttf-dejavu wget xfce4 xfce4-terminal \
xorg-server xvfb unzip chromium chromium-chromedriver nss \
freetype harfbuzz ca-certificates ttf-freefont
RUN mkdir -p /app/chrome/browser && \
ln -s /usr/bin/chromium-browser /app/chrome/browser/chrome && \
ln -s /usr/bin/chromedriver /app/chrome/chromedriver
RUN apk add --no-cache --virtual .build-deps gcc musl-dev && \
pip install --upgrade pip && \
pip install pipenv ttkbootstrap
WORKDIR /app
COPY ./src /app/src
COPY ./Pipfile /app/Pipfile
COPY ./Pipfile.lock /app/Pipfile.lock
RUN adduser -D -s /bin/bash "$USER" && \
chown -R "$USER":"$USER" /app
USER "$USER"
RUN pipenv install --deploy
CMD ["pipenv", "run", "python", "src/main.py"]