FROM d.xr.to/base as source RUN xbps-remote git && mkdir /app RUN git clone https://github.com/Flood-UI/flood.git /app FROM d.xr.to/base as nodebuild WORKDIR /app COPY --from=source /app/package.json \ /app/package-lock.json \ /app/.babelrc \ /app/.eslintrc.js \ /app/.eslintignore \ /app/.prettierrc \ /app/ABOUT.md \ /app/ # Install mediainfo and move CLI tool because we don't need the gui RUN xbps-remote base-devel nodejs yarn python mediainfo && \ yarn COPY --from=source /app/client /app/client COPY --from=source /app/shared /app/shared COPY --from=source /app/scripts /app/scripts COPY --from=source /app/server /app/server COPY --from=source /app/config.docker.js /app/config.js RUN yarn build && \ yarn install --prod RUN sed -i '/floodServerPort/a floodServerHost: "0.0.0.0",' /app/config.js FROM d.xr.to/base as flood WORKDIR /app RUN xbps-remote libmediainfo nodejs COPY --from=nodebuild /app /app COPY --from=nodebuild /bin/mediainfo /bin/mediainfo EXPOSE 3000 VOLUME ["/data"] CMD [ "npm", "start" ]