Added k8s support

This commit is contained in:
2020-09-27 08:22:41 +08:00
parent 167da69ae4
commit ea75ed0d9e
4 changed files with 148 additions and 6 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
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" ]