Skip to content

Commit c4ba991

Browse files
committed
fix(codespaces): use the new Serenity/JS Playwright image
1 parent 7de3b47 commit c4ba991

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
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/*
1+
FROM ghcr.io/serenity-js/playwright:v1.56.1-noble
312

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

0 commit comments

Comments
 (0)