TODO finish debugger
This commit is contained in:
parent
071c300942
commit
29ec334e88
17
Dockerfile-debug
Normal file
17
Dockerfile-debug
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM golang:latest 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
|
||||||
|
|
||||||
|
COPY --from=builder /app/bin/crawler /usr/bin/crawler
|
||||||
|
|
||||||
|
CMD ["crawler"]
|
||||||
9
docker-compose-debug.yaml
Normal file
9
docker-compose-debug.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
crawler-debug:
|
||||||
|
container-name: crawler-debug
|
||||||
|
build:
|
||||||
|
dockerfile: Dockerfile-debug
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
Loading…
x
Reference in New Issue
Block a user