Uhm so yeah here's some c o d e
This commit is contained in:
1 parent
6a77189343
commit
d530b182b3
33 files changed
+1934
-298
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
# Builder
|
||||
FROM rust:1.62-buster as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Add extra build dependencies here
|
||||
RUN apt-get update && apt-get install -y cmake
|
||||
|
||||
COPY . .
|
||||
RUN cargo install --path .
|
||||
|
||||
# Runtime
|
||||
FROM debian:buster-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Add extra runtime dependencies here
|
||||
RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy spoticord binary from builder
|
||||
COPY --from=builder /usr/local/cargo/bin/spoticord ./spoticord
|
||||
|
||||
CMD ["./spoticord"]
|
||||
Reference in new issue
Block a user