From d23d5cebe88e04996d18193f621402de97510ee8 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Tue, 29 Nov 2022 12:18:51 -0500 Subject: [PATCH 1/2] add ca-certificates --- bot/parkertron/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/parkertron/Dockerfile b/bot/parkertron/Dockerfile index 3a8ac57..7e95869 100644 --- a/bot/parkertron/Dockerfile +++ b/bot/parkertron/Dockerfile @@ -5,7 +5,7 @@ LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ - && apt install -y libtesseract-dev iproute2 \ + && apt install -y libtesseract-dev iproute2 ca-certificates \ && useradd -m -d /home/container container USER container From c564e117f5dd31bfa04e2f42c8ef55ba91d75c09 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Tue, 29 Nov 2022 12:27:25 -0500 Subject: [PATCH 2/2] add ca-certificates Reformatted File Added notes Moved general packages to their own line Added eng language package to image as it's the default supported lang --- bot/parkertron/Dockerfile | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/bot/parkertron/Dockerfile b/bot/parkertron/Dockerfile index 7e95869..871fe67 100644 --- a/bot/parkertron/Dockerfile +++ b/bot/parkertron/Dockerfile @@ -1,16 +1,20 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye +FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye -LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND noninteractive -RUN apt update -y \ - && apt install -y libtesseract-dev iproute2 ca-certificates \ - && useradd -m -d /home/container container +RUN apt update -y \ + # general packages + && apt install -y iproute2 ca-certificates \ + # additional packages for tesseract and eng lang support + libtesseract-dev tesseract-ocr-eng \ + # add container user to run application + && useradd -m -d /home/container container -USER container -ENV USER=container HOME=/home/container -WORKDIR /home/container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container -COPY ./entrypoint.sh /entrypoint.sh -CMD ["/bin/bash", "/entrypoint.sh"] +COPY ./entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"]