-
Notifications
You must be signed in to change notification settings - Fork 6
/
Docker.dev
38 lines (27 loc) · 1.19 KB
/
Docker.dev
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
FROM python:3.8-buster
RUN useradd -ms /bin/bash vscode
# Install nodejs 12
# https://computingforgeeks.com/how-to-install-nodejs-on-ubuntu-debian-linux-mint/
RUN apt update && \
apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt -y install nodejs
# RUN apt-get update && apt-get install -y build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev
ENV CHROME_VERSION 114.0.5735.90
RUN mkdir -p /tmp/chrome \
&& cd /tmp/chrome \
&& wget -q http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb
RUN cd /tmp/chrome \
&& ls \
&& dpkg -i google-chrome*.deb || true \
&& apt update \
&& apt --fix-broken install -y
# Install chromedriver
RUN mkdir -p /tmp/ && \
cd /tmp/ && \
wget -q -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/${CHROME_VERSION}/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip chromedriver -d /usr/bin/ && \
# clean up the container "layer", after we are done
rm /tmp/chromedriver.zip
USER vscode
ENV PATH="/home/vscode/.local/bin:${PATH}"