Major rewrite
This commit is contained in:
1 parent
0d7f77b1e3
commit
0f190a3f26
60 files changed
+966
-4872
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# Stage 1: Build the Angular application
|
||||
FROM node:18-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build --prod
|
||||
|
||||
# Stage 2: Serve the Angular app using NGINX
|
||||
FROM nginx:stable-alpine AS runtime
|
||||
|
||||
COPY --from=build /app/dist/plant-browser/browser /usr/share/nginx/html
|
||||
|
||||
# Remove the default NGINX configuration
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Copy custom NGINX configuration
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in new issue
Block a user