2019-03-13 03:47:59 +01:00
|
|
|
FROM golang:1.12-alpine AS builder
|
2018-10-04 09:21:30 +02:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . ./
|
|
|
|
RUN apk add git g++
|
|
|
|
RUN go build -o main
|
|
|
|
|
|
|
|
FROM alpine
|
2018-10-06 23:13:03 +02:00
|
|
|
ENV DB_DIR="/app/db"
|
2018-10-04 09:21:30 +02:00
|
|
|
WORKDIR /app
|
2018-10-06 23:13:03 +02:00
|
|
|
RUN mkdir $DB_DIR
|
2018-10-04 09:21:30 +02:00
|
|
|
COPY --from=builder /app/main .
|
2019-05-30 10:35:11 +02:00
|
|
|
COPY ./utils /utils
|
2019-03-13 03:47:59 +01:00
|
|
|
VOLUME /app/db
|
2019-05-30 10:35:11 +02:00
|
|
|
RUN apk add ca-certificates python3 python3-dev nodejs && pip3 install --upgrade pip setuptools cfscrape
|
2018-10-04 09:21:30 +02:00
|
|
|
CMD ["./main"]
|