summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2020-01-30 19:01:17 +0000
committerDennis Kobert <dennis@kobert.dev>2020-01-30 19:01:17 +0000
commit1ba3be90a6ef1d196c6ad45df79ee22608be0b04 (patch)
treec61eed64e70badf40d70ac0bc7623922b2b5cb7a /docker/Dockerfile
parent4b30c13b849ef72c8d31dfa6e42fce6fcd7eac52 (diff)
Fix docker setup
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile7
1 files changed, 4 insertions, 3 deletions
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