mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
26 lines
552 B
Docker
26 lines
552 B
Docker
# ---------- Build Stage ----------
|
|
FROM node:16-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Ionic CLI (optional but safe)
|
|
RUN npm install -g @ionic/cli@6 @angular/cli@12
|
|
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
# Build production app
|
|
RUN ionic build --prod
|
|
|
|
# ---------- Run Stage ----------
|
|
FROM nginx:alpine
|
|
|
|
# Copy build output to nginx
|
|
COPY --from=build /app/www /usr/share/nginx/html
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |