diff --git a/Dockerfile b/Dockerfile index 42c8b73..96df4c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ -FROM ubuntu:latest +FROM ubuntu:latest AS builder RUN apt update && \ - apt install -y \ - curl \ - ffmpeg && \ - curl -L https://downloads.filestash.app/upload/enterprise.tar.gz | tar -xz && \ - chmod +x /app/filestash.bin + apt install -y curl && \ + curl -L https://downloads.filestash.app/upload/enterprise.tar.gz -o /tmp/enterprise.tar.gz && \ + tar -xzf /tmp/enterprise.tar.gz --strip-components=1 -C /tmp + +FROM ubuntu:latest + +COPY --from=builder /tmp/filestash.bin /app/filestash.bin + +RUN chmod +x /app/filestash.bin EXPOSE 8334