forked from JustHumanz/Go-Simp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·47 lines (35 loc) · 1.4 KB
/
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
42
43
44
45
46
47
# build stage
FROM golang:1.18-alpine as build-stage
RUN apk --no-cache add git
RUN export CGO_ENABLED=1
RUN mkdir /app
COPY . /app/Go-Simp
WORKDIR /app/Go-Simp
WORKDIR /app/Go-Simp/bin
#fanart
RUN go build -o bilibili_fanart ../service/fanart/bilibili/
RUN go build -o pixiv_fanart ../service/fanart/pixiv/
RUN go build -o twitter_fanart ../service/fanart/twitter/
#frontend
RUN go build -o fe ../service/frontend/
#live
RUN go build -o livebili ../service/livestream/bilibili/live
RUN go build -o spacebili ../service/livestream/bilibili/space
RUN go build -o liveyoutube_upcoming_counter ../service/livestream/youtube/UpcomingCounter
RUN go build -o liveyoutube_upcoming_checker ../service/livestream/youtube/UpcomingChecker
RUN go build -o liveyoutube_live_tracker ../service/livestream/youtube/LiveTracker
RUN go build -o liveyoutube_past_tracker ../service/livestream/youtube/PastTracker
RUN go build -o livetwitch ../service/livestream/twitch
#migrate
RUN go build -o migrate ../service/migrate/
#pilot
RUN go build -o pilot ../service/pilot/
#api
RUN go build -o api ../service/rest-api/
#subscriber
RUN go build -o subscriber_bilibili ../service/subscriber/bilibili
RUN go build -o subscriber_twitch ../service/subscriber/twitch
RUN go build -o subscriber_twitter ../service/subscriber/twitter
RUN go build -o subscriber_youtube ../service/subscriber/youtube
#utility
RUN go build -o utility ../service/utility/