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