You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
711 B

# Base image
FROM node:18-alpine
# Set working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json (if exists)
COPY package.json ./
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy the rest of the application code
COPY . .
# Set environment variables
ENV NEXT_PUBLIC_DEFAULT_LANGUAGE=en
ENV NEXT_PUBLIC_AVAILABLE_LANGUAGES=en
ENV NEXT_PUBLIC_ENABLE_MULTI_LANG=true
ENV NODE_ENV=production
ENV NEXT_PUBLIC_REST_API_ENDPOINT=https://mesbahi.nwhco.ir/api
ENV NEXT_PUBLIC_SITE_URL=https://mesbahi.nwhco.ir
ENV USE_MOCK_DATA=false
# Build the Next.js application
RUN npm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["npm", "start"]