Cipher Zero Protocol 987e2e7045 sentimentX
2025-03-01 17:35:56 +03:00

28 lines
447 B
Docker

FROM node:18-alpine AS build
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy application code
COPY . .
# Build the application
RUN npm run build
# Serve with nginx
FROM nginx:alpine
# Copy build files from previous stage
COPY --from=build /app/build /usr/share/nginx/html
# Copy nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]