From a7abf29115f8c3a279c447487687296c7610ee96 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 6 May 2024 17:38:20 +0000 Subject: initial version of the prettier service --- prettier/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 prettier/Dockerfile (limited to 'prettier/Dockerfile') diff --git a/prettier/Dockerfile b/prettier/Dockerfile new file mode 100644 index 0000000..7d57645 --- /dev/null +++ b/prettier/Dockerfile @@ -0,0 +1,11 @@ +FROM node:lts-alpine3.19 +ENV HOME /home/user +RUN set -eux; \ + adduser -u 1001 -D -h "$HOME" user; \ + mkdir "$HOME/app"; \ + chown -R user:user "$HOME" +USER user +COPY ./package.* "$HOME/app/" +RUN cd "$HOME/app" && npm install --production +COPY ./*.js /app/ +ENTRYPOINT ["$HOME/app/server.js"] -- cgit v1.2.3