Skip to content
Permalink
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 http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list \
&& wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - \
&& apt-get update \
&& apt-get install newrelic-sysmond
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs
RUN npm install elm
ENV PATH="/node_modules/.bin:$PATH"
WORKDIR /app
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/dummy.rs src/main.rs
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 ./start.sh
You can’t perform that action at this time.