Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 011dd3d

Browse files
feat: setup Dockerfile
1 parent a41d9d4 commit 011dd3d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM mcr.microsoft.com/playwright:v1.32.0-focal
2+
3+
ARG GO_VERSION=1.20
4+
5+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
6+
7+
RUN apt-get update \
8+
&& apt-get install --no-install-recommends -y build-essential \
9+
&& wget -O /tmp/go.tar.gz https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
10+
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
11+
&& rm /tmp/go.tar.gz \
12+
&& rm -rf /var/lib/apt-get/lists/*
13+
14+
ENV PATH /usr/local/go/bin:$PATH
15+
ENV GOPATH $HOME/go
16+
ENV PATH $GOPATH/bin:$PATH
17+
18+
RUN go install github.com/playwright-community/playwright-go/cmd/playwright@latest \
19+
&& playwright install --with-deps

0 commit comments

Comments
 (0)