-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1008 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
ARG IMAGE
FROM ${IMAGE}
SHELL ["/bin/bash", "-c"]
ARG TARGET_ARCH
# Note: dh-systemd doesn't exist on bullseye anymore (it's been merged with debhelper)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git build-essential \
debhelper devscripts fakeroot git-buildpackage dh-make dh-golang \
&& \
(apt-get install -y --no-install-recommends dh-systemd || true) \
&& \
if [[ `dpkg-architecture -q DEB_BUILD_ARCH` != "${TARGET_ARCH}" ]]; then \
dpkg --add-architecture ${TARGET_ARCH} && \
apt-get update && \
apt-get install -y --no-install-recommends \
crossbuild-essential-${TARGET_ARCH}; \
fi && \
apt-get install -y --no-install-recommends \
libcairo2-dev:${TARGET_ARCH} \
libgtk-3-dev:${TARGET_ARCH}
ARG GO_TAGS
ENV GO_TAGS=${GO_TAGS}
# We cache go get gtk, to speed up builds.
#RUN go get -tags ${GO_TAGS} -v github.com/gotk3/gotk3/gtk/...
ADD . /prusalink-screen/
#RUN go get -tags ${GO_TAGS} -v ./...
WORKDIR /prusalink-screen/