windowvomit commited on
Commit
c3c0961
·
verified ·
1 Parent(s): f4b369a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+ # Use an official Node.js runtime as the base image
3
+ FROM node:22.1.0
4
+ USER root
5
+
6
+ RUN apt-get update
7
+ USER 1000
8
+ WORKDIR /usr/src/app
9
+ # Copy package.json and package-lock.json to the container
10
+ COPY --chown=1000 package.json package-lock.json ./
11
+
12
+ # Copy the rest of the application files to the container
13
+ COPY --chown=1000 . .
14
+
15
+ RUN npm install
16
+ RUN npm run build
17
+
18
+ # Expose the application port (assuming your app runs on port 3000)
19
+ EXPOSE 5173
20
+
21
+ # Start the application
22
+ CMD ["npm", "start"]