From b40417bdcaa85c20b810a0786c685167c6bf09d7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 15 Aug 2021 15:28:18 +0200 Subject: [PATCH] WORKDIR instead of CD --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a921c3..07ce045 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,10 @@ COPY README.md . WORKDIR /opt COPY src . -RUN cd src/lavalink/ && \ - curl -Lso README.md https://gitlab.com/ConfrerieDuKassoulait/lavalink/-/raw/main/README.md && \ + +WORKDIR /opt/src/lavalink +RUN curl -Lso README.md https://gitlab.com/ConfrerieDuKassoulait/lavalink/-/raw/main/README.md && \ apt purge curl -y +WORKDIR /opt CMD ["python", "-u", "./main.py"]