update README.md, switch user in Dockerfile(drop privileges), remove .gitlab-ci.yml

This commit is contained in:
2020-11-23 18:14:41 +00:00
parent d409d0cf93
commit be51f47da8
3 changed files with 2 additions and 17 deletions

View File

@@ -2,9 +2,9 @@ FROM node:lts-alpine3.12
RUN mkdir /data
COPY ./ /data
WORKDIR /data
RUN ls -lash
RUN yarn install --production
RUN adduser --disabled-password --gecos "" slowdowner
RUN chown slowdowner:slowdowner /data
USER slowdowner
CMD yarn run start
EXPOSE 8080