sw-jobs-scraper/Dockerfile

13 lines
245 B
Docker
Raw Normal View History

2024-12-06 17:00:11 +00:00
FROM golang:1.21-alpine AS builder
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:02:05 +00:00
COPY . .
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"]