forked from wathiede/photosync
More cacheable Dockerfile.
This commit is contained in:
parent
f8d0da1af4
commit
8633e9a6cc
@ -1,5 +1,4 @@
|
||||
FROM rustlang/rust:nightly AS build-env
|
||||
COPY ./ /src/
|
||||
COPY ./dockerfiles/netrc /root/.netrc
|
||||
RUN mkdir /root/.cargo
|
||||
COPY ./dockerfiles/cargo-config /.cargo/config
|
||||
@ -7,6 +6,7 @@ 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_12.x | bash -
|
||||
RUN apt-get update && apt-get install -y strace build-essential clang nodejs yarn
|
||||
COPY ./ /src/
|
||||
WORKDIR /src/react-slideshow
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user