Added k8s support
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user