mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-28 03:50:10 +00:00
Compare commits
2 Commits
93180302ae
...
46c95d7664
Author | SHA1 | Date | |
---|---|---|---|
46c95d7664 | |||
17994352b1 |
@ -3,10 +3,10 @@ FROM golang:latest AS build
|
|||||||
COPY . /opt/build
|
COPY . /opt/build
|
||||||
|
|
||||||
RUN apt update -y \
|
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 -) \
|
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
|
||||||
&& apt install nodejs \
|
&& 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
|
&& sed -i 's#id="pwrJfPath" placeholder="Folder"#id="pwrJfPath" value="/jf" disabled#g' /opt/build/build/data/templates/setup.html
|
||||||
|
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
|
5
Makefile
5
Makefile
@ -36,7 +36,10 @@ compile:
|
|||||||
go mod download
|
go mod download
|
||||||
echo "Building"
|
echo "Building"
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
go build -o build/jfa-go *.go
|
CGO_ENABLED=0 go build -o build/jfa-go *.go
|
||||||
|
|
||||||
|
compress:
|
||||||
|
upx --lzma build/jfa-go
|
||||||
|
|
||||||
copy:
|
copy:
|
||||||
echo "Copying data"
|
echo "Copying data"
|
||||||
|
Loading…
Reference in New Issue
Block a user