Skip to content
Snippets Groups Projects
Select Git revision
  • patch-25
  • master default protected
  • Vivakvo-master-patch-80805
  • patch-26
  • patch-19
  • patch-24
  • patch-23
  • patch-22
  • patch-21
  • patch-18
  • patch-17
  • Vivakvo-master-patch-99327
  • patch-16
  • patch-15
  • patch-14
  • patch-13
  • patch-12
  • patch-11
  • patch-10
  • patch-9
  • v1.4.1
  • v1.4.0
  • v1.3.11
  • v1.3.10
  • v1.3.9
  • v1.3.8
  • v1.3.7
  • v1.3.6
  • v1.3.5
  • v1.3.4
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.10
  • v1.2.9
  • v1.2.8
  • v1.2.7
  • v1.2.6
  • v1.2.5
40 results

.editorconfig

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.
    Dockerfile 1019 B
    # FROM rustlang/rust:nightly-slim as build
    # nightly needed for -Zgit=shallow-deps build but ahash problem with stdsimd
    FROM rust:latest as build
    # # Use musl Rust image
    # FROM clux/muslrust:1.75.0-stable as build
    
    WORKDIR /app
    
    # Copy the Cargo.toml and Cargo.lock files to leverage Docker's caching mechanism
    COPY Cargo.toml Cargo.lock ./
    
    # Build the dependencies of the application separately
    RUN --mount=type=cache,target=/app/target \
        --mount=type=cache,target=/root/.cargo/registry \
        mkdir src \
        && echo "fn main() {}" > src/main.rs \
        && cargo build --release \
        && rm -r src
    
    # Copy the rest of the source code
    COPY ./res ./res
    COPY ./src ./src
    
    # Build the application
    RUN cargo build --release
    
    # Start release stage
    FROM debian as release
    
    # Set the working directory to the location of the built application
    WORKDIR /app
    
    # Copy the built application from the previous stage
    COPY --from=build /app/target/release/gcli .
    
    # Specify the entrypoint for the container
    ENTRYPOINT ["/app/gcli"]