term-notify-server/Dockerfile
2020-09-27 08:22:41 +08:00

14 lines
282 B
Docker

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" ]