summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-08-06 17:57:18 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-08-06 19:39:52 +0200
commit503721070e709324adc7ba4037de33ed5079458f (patch)
treec1e7ef0733a06f172096f7b7cada1a6dd8148322 /docker
parent81e9e16e6feaa2833e3544d3fe8d04fda60d009f (diff)
[pkg] squash targets
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile25
-rw-r--r--docker/Makefile10
2 files changed, 35 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..89df450
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,25 @@
+# An image to build and package the Bitmask Lite (RiseupVPN and other branded builds)
+# (c) LEAP Encryption Access Project 2018
+FROM ubuntu:disco
+
+MAINTAINER LEAP Encryption Access Project <info@leap.se>
+LABEL Description="An image to build Bitmask Lite" Vendor="LEAP" Version="1.1"
+
+RUN apt update && apt upgrade -y
+
+# Install all the deps for building and packaging bitmask-vpn
+
+RUN apt install -y --no-install-recommends \
+ build-essential \
+ make \
+ git curl wget \
+ golang libappindicator3-dev libgtk-3-dev \
+ mingw-w64 upx-ucl python snapcraft \
+ unzip \
+ devscripts fakeroot debhelper dh-golang golang-golang-x-text-dev
+
+# we need nsis >= 3.0
+RUN echo 'deb http://archive.ubuntu.com/ubuntu cosmic universe' >> /etc/apt/sources.list
+RUN apt update
+RUN apt install -y --no-install-recommends -t cosmic nsis
+
diff --git a/docker/Makefile b/docker/Makefile
new file mode 100644
index 0000000..3cd76f1
--- /dev/null
+++ b/docker/Makefile
@@ -0,0 +1,10 @@
+IMAGE=bitmask-vpn
+
+build:
+ docker build -t 0xacab.org:4567/leap/docker/$(IMAGE):latest .
+push:
+ docker push 0xacab.org:4567/leap/docker/$(IMAGE):latest
+prune:
+ docker system prune
+login:
+ docker login 0xacab.org:4567