mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Docker: usr rust image as builder (latest version)
This commit is contained in:
parent
0541223ee1
commit
b29a95da7b
1 changed files with 12 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
# This file is part of masscanned.
|
# This file is part of masscanned.
|
||||||
# Copyright 2021 - 2023 The IVRE project
|
# Copyright 2021 - 2024 The IVRE project
|
||||||
#
|
#
|
||||||
# Masscanned is free software: you can redistribute it and/or modify it
|
# Masscanned is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
|
@ -14,17 +14,21 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Masscanned. If not, see <http://www.gnu.org/licenses/>.
|
# along with Masscanned. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
FROM debian:12 AS builder
|
FROM debian:12 AS fetcher
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
RUN apt-get -q update && \
|
||||||
|
apt-get -qy --no-install-recommends install ca-certificates curl && \
|
||||||
|
curl -L https://github.com/ivre/masscanned/archive/refs/heads/master.tar.gz | tar zxf -
|
||||||
|
|
||||||
RUN echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list.d/testing.list && \
|
|
||||||
apt-get -q update && \
|
FROM rust AS builder
|
||||||
apt-get -qy --no-install-recommends install cargo ca-certificates curl && \
|
|
||||||
curl -L https://github.com/ivre/masscanned/archive/refs/heads/master.tar.gz | tar zxf - && \
|
COPY --from=fetcher /masscanned-master /masscanned-master
|
||||||
cd masscanned-master && \
|
|
||||||
|
RUN cd masscanned-master && \
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
|
||||||
FROM debian:12
|
FROM debian:12
|
||||||
LABEL maintainer="Pierre LALET <pierre@droids-corp.org>"
|
LABEL maintainer="Pierre LALET <pierre@droids-corp.org>"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue