Steve-444 commited on
Commit
4944870
·
verified ·
1 Parent(s): d37ec92

Upload Dockerfile (1) (1).txt

Browse files
Files changed (1) hide show
  1. Dockerfile (1) (1).txt +25 -0
Dockerfile (1) (1).txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg imagemagick webp && apt-get clean
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy package files
10
+ COPY package*.json ./
11
+
12
+ # Install dependencies
13
+ RUN npm install && npm cache clean --force
14
+
15
+ # Copy application code
16
+ COPY . .
17
+
18
+ # Expose port
19
+ EXPOSE 3000
20
+
21
+ # Set environment
22
+ ENV NODE_ENV production
23
+
24
+ # Run command
25
+ CMD ["npm", "run", "start"]