Skip to content

Commit

Permalink
compress executable in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed Sep 2, 2020
1 parent 1799435 commit 46c95d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46c95d7

Please sign in to comment.