Skip to content

Commit d977e7a

Browse files
committed
fix(codespaces): use base playwright image
1 parent cbb7269 commit d977e7a

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
1-
FROM ghcr.io/serenity-js/playwright:v1.56.1-noble
1+
FROM mcr.microsoft.com/playwright:v1.56.1-noble
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG TZ=UTC
5+
6+
ENV SHELL=/bin/bash
7+
ENV PATH="/opt/google/chrome:${PATH}"
8+
ENV HOME=/home/${USERNAME}
9+
10+
RUN \
11+
# Install Java, chrome, edge etc.
12+
apt-get -y update && \
13+
apt-get -y install default-jre && \
14+
# Install Chrome
15+
cd /tmp && \
16+
curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb && \
17+
apt-get --no-install-recommends install -y ./google-chrome-stable_current_$(dpkg --print-architecture).deb && \
18+
rm -rf ./google-chrome-stable_current_$(dpkg --print-architecture).deb && \
19+
cd - && \
20+
# Update sources \
21+
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \
22+
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ && \
23+
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list' && \
24+
rm microsoft.gpg && \
25+
apt-get update && \
26+
apt-get install -y microsoft-edge-stable && \
27+
npm i -g http-server && \
28+
npm cache clean --force > /dev/null 2>&1 && \
29+
apt-get clean && \
30+
rm -rf /var/lib/apt/lists/*
231

332
# Copy welcome message for Codespaces/Dev Containers
433
COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

0 commit comments

Comments
 (0)