diff --git a/.dockerignore b/.dockerignore index 309b0b7df..de70e0d16 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -**/.git **/target **/node_modules diff --git a/Dockerfile b/Dockerfile index 1132eaf3d..10ae87d1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && \ pkg-config \ libssl-dev \ protobuf-compiler \ + git \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -19,9 +20,7 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /root/workspace -COPY Cargo.toml Cargo.toml -COPY Cargo.lock Cargo.lock -COPY crates crates +COPY . . RUN mkdir -p /opt/tabby/bin RUN mkdir -p /opt/tabby/lib