aboutsummaryrefslogtreecommitdiffstats
path: root/prettier/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-05-06 17:38:20 +0000
committerterminaldweller <devi@terminaldweller.com>2024-05-06 17:38:20 +0000
commita7abf29115f8c3a279c447487687296c7610ee96 (patch)
tree6debdd2ab81c08f9dc32fefc892c06512f775954 /prettier/Dockerfile
parentgemini is finally fixed (diff)
downloadmilla-a7abf29115f8c3a279c447487687296c7610ee96.tar.gz
milla-a7abf29115f8c3a279c447487687296c7610ee96.zip
initial version of the prettier service
Diffstat (limited to '')
-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"]