forked from DerekNPelkey/auto-rsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (49 loc) · 1.51 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Nelson Dane
# Build from the playwright image
FROM mcr.microsoft.com/playwright:v1.32.0-jammy
# Set ENV variables
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
# Default display to :99
ENV DISPLAY :99
# CD into app
WORKDIR /app
# Install python, pip, and tzdata
RUN apt-get update && apt-get install -y --no-install-recommends \
xvfb \
xfonts-cyrillic \
xfonts-100dpi \
xfonts-75dpi \
xfonts-base \
xfonts-scalable \
gtk2-engines-pixbuf \
wget \
gpg \
python3-pip \
tzdata \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# Install Chromium
RUN add-apt-repository ppa:saiarcot895/chromium-beta
RUN apt-get update && apt-get install -y --no-install-recommends chromium-browser chromium-chromedriver && rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver
# Install python dependencies
COPY ./requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install playwright
RUN playwright install && \
playwright install-deps
# Grab needed files
COPY ./autoRSA.py .
COPY ./allyAPI.py .
COPY ./fidelityAPI.py .
COPY ./robinhoodAPI.py .
COPY ./schwabAPI.py .
COPY ./tradierAPI.py .
COPY ./helperAPI.py .
COPY ./tastyAPI.py .
COPY ./entrypoint.sh .
# Make the entrypoint executable
RUN chmod +x entrypoint.sh
# Set the entrypoint to our entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]