Created
          November 3, 2025 13:09 
        
      - 
      
 - 
        
Save deanrock/81d84e94c1f06c4c7c8b2f73cb410472 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM rust:1-alpine AS builder | |
| RUN apk --no-cache add musl-dev g++ | |
| WORKDIR /usr/src/app | |
| COPY . . | |
| RUN --mount=type=cache,target=/usr/local/cargo/registry \ | |
| --mount=type=cache,target=/usr/src/app/target \ | |
| cargo build --release && \ | |
| cp /usr/src/app/target/release/proxy ./proxy | |
| FROM scratch | |
| WORKDIR /app | |
| COPY --link --from=builder /usr/src/app/proxy /app/proxy | |
| CMD ["/app/proxy"] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment