File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ ARG GO_IMAGE
2
+ ARG BUILD_IMAGE=ubuntu:eoan
3
+ FROM ${GO_IMAGE} as golang
4
+
5
+ FROM ${BUILD_IMAGE}
6
+
7
+ # Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639
8
+ RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \
9
+ rm -f /usr/bin/man; \
10
+ dpkg-divert --quiet --remove --rename /usr/bin/man; \
11
+ fi
12
+
13
+ RUN apt-get update && apt-get install -y curl devscripts equivs git
14
+
15
+ ENV GOPROXY=direct
16
+ ENV GO111MODULE=off
17
+ ENV GOPATH /go
18
+ ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
19
+ ENV DOCKER_BUILDTAGS apparmor seccomp selinux
20
+ ENV RUNC_BUILDTAGS apparmor seccomp selinux
21
+
22
+ ARG COMMON_FILES
23
+ COPY ${COMMON_FILES} /root/build-deb/debian
24
+ RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
25
+
26
+ COPY sources/ /sources
27
+
28
+ ENV DISTRO ubuntu
29
+ ENV SUITE eoan
30
+
31
+ COPY --from=golang /usr/local/go /usr/local/go
32
+
33
+ WORKDIR /root/build-deb
34
+ COPY build-deb /root/build-deb/build-deb
35
+
36
+ ENTRYPOINT ["/root/build-deb/build-deb" ]
You can’t perform that action at this time.
0 commit comments