-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
wget gnupg unzip curl xvfb \
libxi6 libnss3 libasound2 libxss1 libatk-bridge2.0-0 \
libgtk-3-0 libx11-xcb1 fonts-liberation libu2f-udev \
&& wget -q -O - https://dl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor -o /usr/share/keyrings/google-linux.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-linux.gpg] http://dl.google.com/linux/chrome/deb/ stable main" \
> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update && apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
ENV CHROME_BINARY=/usr/bin/google-chrome
CMD ["python", "-m", "storybot.bot.main"]