feat: docker support

This commit is contained in:
Supan Adit Pratama 2022-09-10 14:11:31 +07:00
parent 8715c3b971
commit 6717e40f16
3 changed files with 14 additions and 4 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
# Stage 1
FROM node:14.20.0 as node
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build --prod
# Stage 2
FROM nginx:alpine
COPY --from=node /app/dist/geosmartmap /usr/share/nginx/html

View File

@ -1,4 +1,4 @@
export const environment = { export const environment = {
api: 'http://localhost:8080', api: 'https://api.geosmart.supanadit.com',
production: true production: true
}; };

View File

@ -3,8 +3,8 @@
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.
export const environment = { export const environment = {
api: 'http://localhost:8080', api: 'https://api.geosmart.supanadit.com',
production: false production: false
}; };
/* /*