Files
v2ray-proxy/Dockerfile
Keivan-sf 841e83f401 Use docker to build binaries
Since I use nix and the target does not work on other linux distros
2025-07-27 22:45:10 +03:30

15 lines
314 B
Docker

FROM rust:slim AS builder
RUN apt-get update && apt-get install -y \
pkg-config libssl-dev build-essential curl git \
&& rm -rf /var/lib/apt/lists/*
RUN rustup target add x86_64-unknown-linux-gnu
WORKDIR /app
COPY . .
# Build for the target
RUN cargo build --release --target x86_64-unknown-linux-gnu