File size: 398 Bytes
867b17d
 
 
 
 
 
1498d68
867b17d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:20-alpine
USER root

USER 1000
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the container
COPY --chown=1000 package.json ./

# Copy the rest of the application files to the container
COPY --chown=1000 . .

RUN npm install
RUN npm run build

# Expose the application port (assuming your app runs on port 3000)
EXPOSE 3000

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