sw-jobs-scraper/Dockerfile

12 lines
241 B
Docker
Raw Normal View History

2024-12-06 18:30:08 +00:00
FROM golang:1.23 AS builder
2024-12-06 17:00:11 +00:00
WORKDIR /app
2024-12-06 17:02:05 +00:00
COPY go.mod go.sum ./
2024-12-06 17:00:11 +00:00
RUN go mod download
2024-12-06 17:05:03 +00:00
COPY *.go ./
2024-12-06 17:00:11 +00:00
RUN CGO_ENABLED=0 GOOS=linux go build -o job-scraper
FROM alpine:3.18
WORKDIR /app
COPY --from=builder /app/job-scraper .
CMD ["./job-scraper"]