0% found this document useful (0 votes)
9 views1 page

Docker File

This document outlines a Dockerfile for creating a container image based on Node.js 18 with various dependencies installed, including ffmpeg and sqlite3. It sets up a user named 'container', installs specific npm packages globally, and configures the entry point to execute a script. The image is designed to run with a specified working directory and signal handling.

Uploaded by

flamecode2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Docker File

This document outlines a Dockerfile for creating a container image based on Node.js 18 with various dependencies installed, including ffmpeg and sqlite3. It sets up a user named 'container', installs specific npm packages globally, and configures the entry point to execute a script. The image is designed to run with a specified working directory and signal handling.

Uploaded by

flamecode2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

FROM --platform=$TARGETOS/$TARGETARCH node:18-bookworm-slim

LABEL author="Michael Parker" maintainer="[email protected]"

RUN apt update \


&& apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3
python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool
iputils-ping libnss3 tini libjpeg8 libjpeg-turbo8 \
&& useradd -m -d /home/container container

RUN npm install [email protected] typescript ts-node @types/node --location=global

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

STOPSIGNAL SIGINT

COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh


RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]

You might also like