mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
Merge 6b7a4ea4e3 into 06776d15c4
This commit is contained in:
commit
1ef9c9ccc8
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue