31 lines
493 B
Docker
31 lines
493 B
Docker
|
# syntax=docker/dockerfile:latest
|
||
|
ARG BASE_IMAGE
|
||
|
FROM $BASE_IMAGE
|
||
|
ARG BASE_IMAGE
|
||
|
ARG SYSADMIN_PW
|
||
|
ARG VERBOSE
|
||
|
ARG LINUX_DISTRO=alpine
|
||
|
WORKDIR /build
|
||
|
|
||
|
# PACKAGES
|
||
|
RUN --mount=type=bind,source=.src/packages,target=/build/packages \
|
||
|
<<eot
|
||
|
.INCLUDE packages.tpl
|
||
|
eot
|
||
|
# END PACKAGES
|
||
|
|
||
|
# INITIALIZATION
|
||
|
RUN --mount=type=bind,source=.src/init,target=/build/init \
|
||
|
<<eot
|
||
|
.INCLUDE init.tpl
|
||
|
eot
|
||
|
|
||
|
# END INITIALIZATION
|
||
|
|
||
|
# default command
|
||
|
ENTRYPOINT ["/opt/bin/entrypoint"]
|
||
|
# default
|
||
|
WORKDIR /opt
|
||
|
|
||
|
|