mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-29 12:30:11 +00:00
Harvey Tindall
eb370d64df
the web ui has been redesigned with the a17t toolkit, which imo looks a lot better than bootstrap. This also brought a complete rework of the web code, which now makes a lot more sense hopefully. the setup page is still stuck with bootstrap, its not much of a priority but i'll rewrite it eventually.
21 lines
566 B
Docker
21 lines
566 B
Docker
FROM golang:latest AS build
|
|
|
|
COPY . /opt/build
|
|
|
|
RUN apt update -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 all; make compress) \
|
|
&& sed -i 's#id="pwrJfPath" placeholder="Folder"#id="pwrJfPath" value="/jf" disabled#g' /opt/build/build/data/html/setup.html
|
|
|
|
FROM golang:latest
|
|
|
|
COPY --from=build /opt/build/build /opt/jfa-go
|
|
|
|
EXPOSE 8056
|
|
|
|
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]
|
|
|
|
|