Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (27 sloc) 1.04 KB
FROM rust:1.20.0
RUN rustup default nightly-2017-12-21 && rustup update
RUN cargo install cargo-watch
RUN cargo install diesel_cli --no-default-features --features postgres
RUN echo deb newrelic non-free >> /etc/apt/sources.list.d/newrelic.list \
&& wget -O- | apt-key add - \
&& apt-get update \
&& apt-get install newrelic-sysmond
RUN curl -sL | bash - \
&& apt-get install -y nodejs
RUN npm install elm
ENV PATH="/node_modules/.bin:$PATH"
COPY src/scrapper/package.json src/scrapper/package-lock.json ./src/scrapper/
RUN cd src/scrapper && npm install && cd -
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
RUN cargo build --release
RUN cargo build --tests
COPY elm-package.json ./
RUN elm package install --yes
COPY admin admin
RUN elm-make --yes admin/Main.elm --output target/admin.js
COPY src src
RUN rm target/release/fake-news-api && cargo build --release && cargo install
COPY . .
CMD ./
You can’t perform that action at this time.