12 lines
358 B
Docker
12 lines
358 B
Docker
FROM rust:latest AS build-env
|
|
COPY ./ /src/
|
|
COPY ./dockerfiles/netrc /root/.netrc
|
|
RUN mkdir /root/.cargo
|
|
COPY ./dockerfiles/cargo-config /.cargo/config
|
|
RUN apt-get update && apt-get install -y strace build-essential clang
|
|
WORKDIR /src
|
|
RUN cargo version && cargo install --path .
|
|
|
|
FROM rust:slim
|
|
COPY --from=build-env /usr/local/cargo/bin/photosync /usr/bin/
|