summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
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