add docker file
This commit is contained in:
parent
e96f6df206
commit
2ac6609550
@ -1,17 +1,17 @@
|
||||
FROM golang:latest as builder
|
||||
FROM golang:1.22rc2 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN ls -l
|
||||
|
||||
RUN go mod download && go mod tidy
|
||||
|
||||
RUN go build -o bin/crawler ./cmd/crawler/main.go
|
||||
|
||||
FROM mcr.microsoft.com/playwright
|
||||
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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user