mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-03 14:38:59 +00:00
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
This commit is contained in:
1 parent
d23d5cebe8
commit
c564e117f5
1 file changed
+15
-11
+15
-11
@@ -1,16 +1,20 @@
|
|||||||
FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye
|
FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye
|
||||||
|
|
||||||
LABEL author="Michael Parker" maintainer="[email protected]"
|
LABEL author="Michael Parker" maintainer="[email protected]"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y libtesseract-dev iproute2 ca-certificates \
|
# general packages
|
||||||
&& useradd -m -d /home/container container
|
&& 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
|
USER container
|
||||||
ENV USER=container HOME=/home/container
|
ENV USER=container HOME=/home/container
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||||
Reference in new issue
Block a user