Skip to content

Commit

Permalink
Simplify aio.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbecker20 authored Dec 14, 2024
1 parent a869a74 commit 7e030e7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/core/aio.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,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/core/Cargo.toml ./bin/core/Cargo.toml
RUN mkdir ./bin/core/src && \
echo "fn main() {}" >> ./bin/core/src/main.rs && \
cargo build -p komodo_core --release && \
rm -r ./bin/core
COPY ./bin/core ./bin/core

# Compile app
Expand Down Expand Up @@ -59,4 +52,4 @@ LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
LABEL org.opencontainers.image.description="Komodo Core"
LABEL org.opencontainers.image.licenses=GPL-3.0

ENTRYPOINT [ "core" ]
ENTRYPOINT [ "core" ]

0 comments on commit 7e030e7

Please sign in to comment.