-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
41 lines (26 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# GitHub: https://github.com/lightglitch/seekerr
FROM golang:1.18-alpine3.16 AS build
ARG CGO=1
ENV CGO_ENABLED=${CGO}
ENV GOOS=linux
ENV GO111MODULE=on
WORKDIR /go/src/github.com/lightglitch/seekerr
COPY . /go/src/github.com/lightglitch/seekerr/
RUN apk update
RUN go build -o seekerr main.go
# ---
FROM python:3.9-alpine3.16
RUN pip install guessit
ENV \
SEEKERR_CONFIG_PATH=/config/ \
SEEKERR_LOGGER_FILE="/config/log/seekerr.%Y%m%d.log"
COPY --from=build /go/src/github.com/lightglitch/seekerr/seekerr /usr/bin/seekerr
# ca-certificates are required to fetch outside resources
RUN apk update && \
apk add --no-cache ca-certificates
RUN mkdir /config
COPY --from=build /go/src/github.com/lightglitch/seekerr/config/seekerr.sample.yaml /config/seekerr.sample.yaml
# Config volume
VOLUME /config
ENTRYPOINT ["seekerr"]
CMD ["cron"]