build

GitHub release (latest by date) GitHub Release Date

How To Utilize Plugins

Purpose

The Purpose of this plugin is to more easily bundle docker required packages into a docker image

This plugin will also copy anything from the src/docker folder into location

The docker dependencies will be built to build/docker

Example Projects

Usage

Using the toCopy in your dependencies will automatically copy the dependencies to the docker java library location

Gradle File

plugins {
    id 'io.github.pacificengine.build.docker' version "0.1.0"
}

dependencies {
    toCopy project(':instance')
}

DockerFile

FROM debian:bullseye-slim

RUN apt-get update \
	&& apt-get upgrade -y \
	&& apt-get install -y \
		openjdk-17-jre \
    && rm -rf /var/cache/apt/* \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir /app

ENV USER_NAME=docker USER_GROUP=docker
RUN addgroup --system $USER_NAME && adduser --system $USER_NAME --ingroup $USER_GROUP
USER root:root

COPY build/docker /

RUN chown -R ${USER_NAME}:${USER_GROUP} /app
USER ${USER_NAME}:${USER_GROUP}
WORKDIR "/app"

ENTRYPOINT ["java","-cp","app:app/lib/*","com.github.pacificengine.Application"]

Properties

Optional Properties