Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamer3514 authored Jun 17, 2024
1 parent 716122d commit 25669d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM --platform=$TARGETOS/$TARGETARCH node:12-bullseye-slim

LABEL author="Michael Parker" maintainer="[email protected]"
LABEL author="Silly Development" 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 \
&& useradd -m -d /home/container container

RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
&& rm -rf /usr/bin/xfs_mkfile
RUN npm install [email protected] typescript ts-node @types/node --location=global

USER container
Expand All @@ -17,4 +20,4 @@ STOPSIGNAL SIGINT
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]
CMD ["/entrypoint.sh"]

0 comments on commit 25669d7

Please sign in to comment.