TODO finish debugger

This commit is contained in:
maximo tejeda 2024-01-14 10:47:27 -04:00
parent 071c300942
commit 29ec334e88
2 changed files with 26 additions and 0 deletions

17
Dockerfile-debug Normal file
View 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"]

View File

@ -0,0 +1,9 @@
version: '3.8'
services:
crawler-debug:
container-name: crawler-debug
build:
dockerfile: Dockerfile-debug
env_file:
- .env