forked from owncloud/qnap-packaging
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (21 loc) · 879 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
FROM owncloud/ubuntu:18.04
LABEL maintainer="consulting@owncloud.com"
ARG QDK2_VER=0.29
ARG DOCKER_VER=19.03.11
# Install build essentail tools
RUN \
apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl wget fakeroot rsync pv bsdmainutils ca-certificates openssl xz-utils make \
&& rm -rf /var/cache/debconf/* /var/lib/apt/lists/* /var/log/*
# Install qdk2
RUN \
wget https://github.com/qnap-dev/qdk2/releases/download/v${QDK2_VER}/qdk2_${QDK2_VER}.bionic_amd64.deb \
&& dpkg -i --force-depends qdk2_${QDK2_VER}.bionic_amd64.deb \
&& rm -f qdk2_${QDK2_VER}.bionic_amd64.deb
# Install docker client
RUN \
curl -sq https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VER.tgz \
| tar zxf - -C /usr/bin docker/docker --strip-components=1 \
&& chown root:root /usr/bin/docker
WORKDIR /work