File size: 570 Bytes
3998131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Use Node.js 20-alpine as the base image
FROM node:20-alpine AS base

# Install pnpm
RUN npm install -g pnpm

# Set working directory
WORKDIR /app

# Copy package.json and pnpm-lock.yaml
COPY Frontend/package.json Frontend/pnpm-lock.yaml* ./

# Install dependencies
RUN pnpm install

# Copy the rest of the frontend code
COPY Frontend/ .

# Set environment variables for build
ENV NEXT_PUBLIC_BACKEND_URL=http://localhost:8000

# Build the Next.js application
RUN pnpm build

# Expose the port the app runs on
EXPOSE 3000

# Start the application
CMD ["pnpm", "start"]