diff --git a/bin/periphery/aio.Dockerfile b/bin/periphery/aio.Dockerfile index d60ab52f3..3f13a1fd4 100644 --- a/bin/periphery/aio.Dockerfile +++ b/bin/periphery/aio.Dockerfile @@ -7,13 +7,6 @@ COPY Cargo.toml Cargo.lock ./ COPY ./lib ./lib COPY ./client/core/rs ./client/core/rs COPY ./client/periphery ./client/periphery - -# Pre compile dependencies -COPY ./bin/periphery/Cargo.toml ./bin/periphery/Cargo.toml -RUN mkdir ./bin/periphery/src && \ - echo "fn main() {}" >> ./bin/periphery/src/main.rs && \ - cargo build -p komodo_periphery --release && \ - rm -r ./bin/periphery COPY ./bin/periphery ./bin/periphery # Compile app @@ -33,4 +26,4 @@ LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo LABEL org.opencontainers.image.description="Komodo Periphery" LABEL org.opencontainers.image.licenses=GPL-3.0 -CMD [ "periphery" ] \ No newline at end of file +CMD [ "periphery" ]