ngx-admin/Dockerfile
Ibrahim Bali 6b7a4ea4e3
refactor(Dockerfile): passing --host directly
Passing --host 0.0.0.0 option directly instead of editing the package.json file to hardcode it.
2018-07-09 10:25:04 +03:00

18 lines
428 B
Docker

# 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"]