From c8fc167b8a1cb5e977d36e536ecac502fd44bfcb Mon Sep 17 00:00:00 2001 From: Sean Sundberg Date: Mon, 11 Sep 2023 10:39:54 -0500 Subject: [PATCH] Expose host in Dockerfile (#19) Signed-off-by: Sean Sundberg --- .dockerignore | 17 +++++++++++++++++ .gitignore | 8 ++++---- Dockerfile | 2 +- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..00cd771 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,17 @@ +.git +.cache + +logs/ +node_modules/ +.idea/ + +Jenkinsfile +CODE_OF_CONDUCT.md +LICENSE +README.md +chart/ +dist/ +docs/ +test-report.xml +setup-template.sh +update-template.sh diff --git a/.gitignore b/.gitignore index a547bf3..1c4406c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Logs -logs +logs/ *.log npm-debug.log* yarn-debug.log* @@ -7,15 +7,15 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* -node_modules -dist +node_modules/ +dist/ dist-ssr *.local # Editor directories and files .vscode/* !.vscode/extensions.json -.idea +.idea/ .DS_Store *.suo *.ntvs* diff --git a/Dockerfile b/Dockerfile index 2746de7..a4aae6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ RUN mkdir -p /opt/app-root/src/node_modules && \ EXPOSE 5173 -CMD ["npm", "run", "dev"] +CMD ["npm", "run", "dev", "--", "--host"]