Files
gosom__google-maps-scraper/Dockerfile
Giorgos Komninos 6b86735e71 Adds Dockerfile
2023-04-22 19:31:41 +03:00

24 lines
450 B
Docker

FROM golang:1.20.1-bullseye as withnode
RUN apt-get update && \
apt-get install -y ca-certificates npm nodejs net-tools && \
npm install && \
npx playwright@v1.25.0 install-deps
ENV GO111MODULE=on
#ENV CGO_ENABLED=1
ENV GOOS=linux
ENV GOARCH=amd64
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /usr/bin/google-maps-scraper
RUN PLAYWRIGHT_INSTALL_ONLY=1 google-maps-scraper
ENTRYPOINT ["google-maps-scraper"]