Page MenuHomeDevCentral

Dockerfile
No OneTemporary

Dockerfile

# -------------------------------------------------------------
# Nasqueron - Docker image for Nasqueron Datasources
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# -------------------------------------------------------------
# -------------------------------------------------------------
# Builder phase
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FROM debian:bookworm AS builder
RUN apt update && \
apt install -y git curl build-essential pkg-config \
libpq-dev libssl-dev && \
rm -r /var/lib/apt/lists/* && \
mkdir -p /opt/datasources && \
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
WORKDIR /opt/datasources
ADD . ./
RUN make all
# -------------------------------------------------------------
# Release phase
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FROM debian:bookworm
MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
RUN apt update && \
apt install -y unzip libpq5 ca-certificates && \
rm -r /var/lib/apt/lists/*
COPY --from=builder \
/opt/datasources/target/release/fantoir-datasource \
/opt/datasources/target/release/language-subtag-registry-datasource \
/opt/datasources/target/release/rfc-datasource \
/usr/local/bin/

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 16, 13:49 (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3810811
Default Alt Text
Dockerfile (1 KB)

Event Timeline