uci-docker-build/Dockerfile.d/Dockerfile.tpl

30 lines
498 B
Smarty

# syntax=docker/dockerfile:latest
ARG BASE_IMAGE
FROM $BASE_IMAGE
ARG BASE_IMAGE
ARG VERBOSE
ARG REBUILD
ARG LINUX_DISTRO=alpine
WORKDIR /build
# CORE
RUN --mount=type=bind,source=./core,target=/build \
<<eot
.INCLUDE core.tpl
eot
% if [[ ( "$_packages_" && ! $BUILD_SRC = "_core_" ) ]]; then
.INCLUDE packages.run
% fi
% if [[ ( "$BUILD_SRC" && ! $BUILD_SRC = "_core_" ) ]]; then
.INCLUDE init.run
% fi
# default command
ENTRYPOINT ["/opt/bin/entrypoint"]
# default
WORKDIR /opt