Refactor Dockerfile and update environment configurations for improved API integration
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
# Build Angular
|
||||
FROM node:20 AS build
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 4200
|
||||
|
||||
# NGINX final
|
||||
FROM nginx:stable
|
||||
|
||||
COPY --from=build /app/dist/client/browser /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["npx", "ng", "serve", "--host", "0.0.0.0", "--port", "4200", "--configuration", "production", "--proxy-config", "proxy.conf.json"]
|
||||
|
||||
Reference in New Issue
Block a user