18 lines
356 B
Docker
18 lines
356 B
Docker
FROM golang:1.22rc2 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN go mod download && go mod tidy
|
|
|
|
RUN go build -o bin/crawler ./cmd/crawler/main.go
|
|
|
|
FROM golang:latest
|
|
|
|
RUN go install github.com/playwright-community/playwright-go/cmd/playwright@latest
|
|
RUN playwright install --with-deps
|
|
COPY --from=builder /app/bin/crawler /usr/bin/crawler
|
|
|
|
CMD ["crawler"]
|