|
|
@ -4,14 +4,12 @@ WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ---- Build ----
|
|
|
|
# ---- Build ----
|
|
|
|
FROM rust:1.65.0-slim AS build
|
|
|
|
FROM rust:1.79.0-slim AS build
|
|
|
|
WORKDIR /build
|
|
|
|
WORKDIR /build
|
|
|
|
# Install packages
|
|
|
|
|
|
|
|
RUN apt update && apt install -y make
|
|
|
|
|
|
|
|
# Copy sources
|
|
|
|
# Copy sources
|
|
|
|
ADD .build/repository/ .
|
|
|
|
ADD .build/repository/ .
|
|
|
|
# Update dependencies and Compile
|
|
|
|
# Compile
|
|
|
|
RUN cargo update && TARGET="release" make
|
|
|
|
RUN cargo build --release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ---- Release ----
|
|
|
|
# ---- Release ----
|
|
|
|