Compiling on Linux #67
-
Hi, Can you help advise the process for compiling on linux (x86 Alpine) I can get bin/build_lin.sh to work on its own, but then I do not know where to populate the content that is needed in /web, so it runs without the UI working I think release.sh is the entry point, installed yarn etc, but Busybox is not happy and bounces a grep issue on startup.
I guess I could run containerd on here, but I was trying to keep it extremely light and run it all in Alpine LXC. It seems heavy to sit Docker into it. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@jamesarbrown hi, i am on vacation and dont have access to my pc, I am compiling the fe with node and yarn. cd ./frontend
yarn
yarn build The build directory contains the web files. If you like docker, this could work with docker to build the frontend. This is the Dockerfile # Stage 1: Build the React app
FROM node:lts as build-stage
ENV NODE_OPTIONS=--openssl-legacy-provider
WORKDIR /app
COPY ./frontend /app
RUN yarn install \
--prefer-offline \
--frozen-lockfile \
--non-interactive \
--production=false
RUN yarn build
# Stage 2: Copy the build output to a new image
FROM node:lts as production-stage
WORKDIR /app
COPY --from=build-stage /app/build ./build
# This stage is just to output the build directory to the local filesystem
FROM scratch as export-stage
COPY --from=production-stage /app/build /build # build docker image
docker build -t m3u-fe .
# create container
docker create --name m3u-fe-container m3u-fe
# copy build to local disk
docker cp m3u-fe-container:/build ./web
# delete container
docker rm m3u-fe-container |
Beta Was this translation helpful? Give feedback.
-
Hi, Installing in LXC Container (Alpine)
Creating a service, create /etc/init.d/m3u-filter
then add it to boot |
Beta Was this translation helpful? Give feedback.
-
Thank you for your description. I have added it to the WIKI |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for that. I dont know if any use in the documentation, but here are the commands to get it started in a Alpine 3.19 LXC
Installing in LXC Container (Alpine)
Creating a service, create /etc/init.d/m3u-filter