From 1ba3be90a6ef1d196c6ad45df79ee22608be0b04 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 30 Jan 2020 19:01:17 +0000 Subject: Fix docker setup --- docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docker/Dockerfile') diff --git a/docker/Dockerfile b/docker/Dockerfile index e8916e6..67662c3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,11 +1,12 @@ # composer install FROM liuchong/rustup:nightly as build COPY ./ /app/ -RUN cargo build cargo r --release +WORKDIR /app +RUN cargo build --release -FROM alpine as spotify_intersect +FROM debian as spotify_intersect WORKDIR /srv/spotify_intersect -COPY --from=build /app/target/release/spotify_intersect /srv/spotify_intersect +COPY --from=build /app/target/release/spotify_intersect ./ COPY .env /srv/spotify_intersect/.env CMD ./spotify_intersect -- cgit v1.2.3-70-g09d2