mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-06 08:00:44 +00:00
Simplify aio.Dockerfile
This commit is contained in:
@@ -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
|
||||
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user