aboutsummaryrefslogtreecommitdiffstats
path: root/prettier/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'prettier/Dockerfile')
-rw-r--r--prettier/Dockerfile11
1 files changed, 11 insertions, 0 deletions
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"]