This commit is contained in:
Deleted user 2024-03-19 01:04:07 -03:00 committed by GitHub
commit 1ef9c9ccc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# base Docker image, remove "-alpine" if having trouble
FROM node:10.5.0-alpine
# added this step to prevent angular.json not found error
WORKDIR /usr/src
COPY . .
RUN npm install
RUN npm audit fix
# running this a second time does seem to fix another vuln.
RUN npm audit fix
# this sometimes do get fixed beforehand
RUN npm update ws --depth 4
EXPOSE 4200
CMD ["npm", "start", "--", "--host", "0.0.0.0"]