term-notify-server/Dockerfile

14 lines
282 B
Docker
Raw Normal View History

2020-09-27 00:22:41 +00:00
FROM node:alpine
WORKDIR /app
RUN echo "www-data:x:33:33:www-data:/app:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:33:" >> /etc/group
RUN chown www-data:www-data . -R
COPY . /app/
RUN npm install
USER www-data
EXPOSE 15602
ENTRYPOINT [ "node", "index.js" ]