flood-ui: add
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
1598110dae
commit
8c4f2a4d11
@ -0,0 +1,40 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
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" ]
|
Loading…
Reference in New Issue