-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (32 loc) · 1.28 KB
/
Dockerfile
File metadata and controls
35 lines (32 loc) · 1.28 KB
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
FROM codercom/code-server:latest
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
&& apt-get install -y --no-install-recommends \
bubblewrap \
cron \
python3 \
python3-pip \
python3-venv \
ansible \
jq \
ripgrep \
nodejs \
&& pip3 install --no-cache-dir --break-system-packages \
pre-commit \
playwright \
pytest \
pytest-playwright \
uvicorn \
&& PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright playwright install-deps chromium \
&& PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright python3 -m playwright install chromium \
&& printf "# docker shortcuts\nalias dc='docker compose'\nalias dcr='docker compose restart'\nalias dx='docker compose up -d --build'\n" > /etc/profile.d/docker_aliases.sh \
&& usermod -l ubuntu coder \
&& usermod -d /home/ubuntu -m ubuntu \
&& groupmod -n ubuntu coder \
&& printf "\n# docker shortcuts\nalias dc='docker compose'\nalias dcr='docker compose restart'\nalias dx='docker compose up -d --build'\n" >> /home/ubuntu/.bashrc \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ENV PATH="/home/ubuntu/.local/bin:${PATH}"
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright