2020-08-17 10:32:34 +00:00
|
|
|
FROM golang:latest AS build
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
COPY . /opt/build
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
RUN apt update -y \
|
|
|
|
&& apt install build-essential python3-pip curl software-properties-common sed -y \
|
|
|
|
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
|
|
|
|
&& apt install nodejs \
|
|
|
|
&& (cd /opt/build; make headless) \
|
|
|
|
&& sed -i 's#id="pwrJfPath" placeholder="Folder"#id="pwrJfPath" value="/jf" disabled#g' /opt/build/build/data/templates/setup.html
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
FROM golang:latest
|
2020-08-03 18:45:10 +00:00
|
|
|
|
2020-08-17 10:32:34 +00:00
|
|
|
COPY --from=build /opt/build/build /opt/jfa-go
|
2020-08-03 18:45:10 +00:00
|
|
|
|
|
|
|
EXPOSE 8056
|
|
|
|
|
|
|
|
CMD [ "/opt/jfa-go/jfa-go", "-data", "/data" ]
|
|
|
|
|
|
|
|
|