-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (32 loc) · 1.37 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -------------------------------------------------------------
# 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 <[email protected]>
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/