add .dockerignore, add Dockerfile, add default.nix, udpate README.md, move packages into respective category(dev/production)

This commit is contained in:
2020-11-23 17:44:47 +00:00
parent 41798367c8
commit d409d0cf93
6 changed files with 1537 additions and 1446 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
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
CMD yarn run start
EXPOSE 8080