diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-05-06 17:38:20 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-05-06 17:38:20 +0000 |
commit | a7abf29115f8c3a279c447487687296c7610ee96 (patch) | |
tree | 6debdd2ab81c08f9dc32fefc892c06512f775954 /prettier/Dockerfile | |
parent | gemini is finally fixed (diff) | |
download | milla-a7abf29115f8c3a279c447487687296c7610ee96.tar.gz milla-a7abf29115f8c3a279c447487687296c7610ee96.zip |
initial version of the prettier service
Diffstat (limited to '')
-rw-r--r-- | prettier/Dockerfile | 11 |
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"] |