From 3d3b9a7a45d02e43be29ba397a9694f5a8540c1c Mon Sep 17 00:00:00 2001 From: floxx2112 Date: Thu, 27 Jul 2023 11:45:03 +0200 Subject: [PATCH] DockerFIle --- Dockerfile | 7 +++++++ src/environments/environment.development.ts | 2 +- src/environments/environment.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..700fb9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:18-alpine +WORKDIR /app +COPY . . +RUN npm install +EXPOSE 9002 +RUN npm run build +CMD ["npm", "start"] diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts index 9b369f8..76db777 100644 --- a/src/environments/environment.development.ts +++ b/src/environments/environment.development.ts @@ -1,4 +1,4 @@ export const environment = { production: false, - apiBaseUrl: 'http://localhost:9001' + apiBaseUrl: 'http://178.18.0.5:9001' }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index f483b58..5f4a3c3 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,5 +1,5 @@ export const environment = { production: false, - apiBaseUrl: 'http://localhost:8080' + apiBaseUrl: 'http://178.18.0.5:9001' };