Build react-slideshow when building photosync into a docker image.

This commit is contained in:
Bill Thiede 2020-03-14 15:08:36 -07:00
parent f14dbff066
commit f683acf0ae
2 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,4 @@
Dockerfile
target
*/node_modules
*/yarn.lock

View File

@ -3,7 +3,13 @@ COPY ./ /src/
COPY ./dockerfiles/netrc /root/.netrc
RUN mkdir /root/.cargo
COPY ./dockerfiles/cargo-config /.cargo/config
RUN apt-get update && apt-get install -y strace build-essential clang
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_13.x | bash -
RUN apt-get update && apt-get install -y strace build-essential clang nodejs yarn
WORKDIR /src/react-slideshow
RUN yarn install
RUN yarn build
WORKDIR /src
RUN cargo version && cargo install --path .