This repository was archived by the owner on Oct 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 14
14
15
15
# Compiled binaries
16
16
ytd
17
- youtube-dld
17
+ youtube-dl
18
18
19
19
# Folders
20
20
_obj
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ RUN mkdir -p /go/src/github.com/Ch3ck/youtube-dl/
5
5
WORKDIR /go/src/github.com/Ch3ck/youtube-dl
6
6
7
7
COPY vendor vendor
8
- COPY ytd.go .
8
+ COPY api api
9
+ COPY Makefile Makefile
10
+ COPY ytd.go .
9
11
10
12
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*" ) \
11
13
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ytd .
@@ -18,24 +20,13 @@ MAINTAINER Nyah Check <check.nyah@gmail.com>
18
20
ENV PATH /go/bin:/usr/local/go/bin:$PATH
19
21
ENV GOPATH /go
20
22
21
- RUN apk add --no-cache add ca-certificates
23
+ RUN apk add --no-cache \
24
+ ca-certificates
22
25
23
26
WORKDIR /root/
24
- COPY --from=0 /go/src/github.com/Ch3ck/ytd .
25
-
26
- RUN set -x \
27
- && apk add --no-cache --virtual .build-deps \
28
- go \
29
- git \
30
- gcc \
31
- libc-dev \
32
- libgcc \
33
- ffmpeg \
34
- && cd /go/src/github.com/Ch3ck/ytd \
35
- && go build -o /usr/bin/ytd . \
36
- && apk del .build-deps \
37
- && rm -rf /go \
38
- && echo "Build complete."
39
-
40
-
41
- CMD [ "./ytd" ]
27
+ COPY --from=0 /go/src/github.com/Ch3ck/youtube-dl .
28
+
29
+ RUN echo "Image build complete."
30
+
31
+
32
+ ENTRYPOINT [ "youtube-dl" ]
You can’t perform that action at this time.
0 commit comments