aboutsummaryrefslogblamecommitdiffstats
path: root/prettier/Dockerfile
blob: 7d5764574af154de77e32a8fbcbbb8a5eabac25d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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"]