sw-jobs-scraper/Dockerfile

12 lines
241 B
Docker
Raw Normal View History

2024-12-06 19:30:08 +01:00
FROM golang:1.23 AS builder
2024-12-06 18:00:11 +01:00
WORKDIR /app
2024-12-06 18:02:05 +01:00
COPY go.mod go.sum ./
2024-12-06 18:00:11 +01:00
RUN go mod download
2024-12-06 18:05:03 +01:00
COPY *.go ./
2024-12-06 18:00:11 +01: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"]