From 46c95d76643fa482c4cca431e88725499c0e95b5 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 2 Sep 2020 20:10:33 +0100 Subject: [PATCH] compress executable in dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 058f2bb..2c94a6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ FROM golang:latest AS build COPY . /opt/build RUN apt update -y \ - && apt install build-essential python3-pip curl software-properties-common sed -y \ + && apt install build-essential python3-pip curl software-properties-common sed upx -y \ && (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \ && apt install nodejs \ - && (cd /opt/build; make headless) \ + && (cd /opt/build; make headless; make compress) \ && sed -i 's#id="pwrJfPath" placeholder="Folder"#id="pwrJfPath" value="/jf" disabled#g' /opt/build/build/data/templates/setup.html FROM golang:latest