summaryrefslogtreecommitdiffstats
path: root/tools/Dockerfile
blob: e364a74d1d22475a3c7434649a4f7cdb8c375054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2021 Nokia
# Licensed under the Apache License 2.0
# SPDX-License-Identifier: Apache-2.0

ARG build_env="no_proxy"

#FROM openjdk:17-slim-bullseye as build_no_proxy
FROM openjdk:8-jdk-slim as build_no_proxy
ONBUILD RUN echo "I don't copy proxy settings"

FROM openjdk:8-jdk-slim as build_proxy
ONBUILD COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf

################ Add all non proxy dependent stuff here
FROM build_${build_env}
ARG DEBIAN_FRONTEND=noninteractive
COPY c2m.sh ./c2m.sh
COPY c2m-wrapper.sh ./c2m-wrapper.sh

# Install wget
RUN apt-get update && apt-get -y install apt-utils
RUN apt-get -y install wget pandoc

RUN wget -q https://repo1.maven.org/maven2/de/viaboxx/markdown/confluence2md/2.1/confluence2md-2.1-fat.jar