Files
boc/landvex-admin/frontend/Dockerfile
T

22 lines
343 B
Docker
Raw Normal View History

FROM node:20-alpine
WORKDIR /app
# Install dependencies
COPY package*.json .
RUN npm install
# Copy application
COPY . .
# Build for production
RUN npm run build
# Serve with nginx
FROM nginx:alpine
COPY --from=0 /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]