Spaces:
Sleeping
Sleeping
Merge pull request #18 from Modarb-Ai-Trainer/update
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Node.js v18 image as the base image
|
2 |
+
FROM node:18
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy package.json and package-lock.json to the working directory
|
8 |
+
COPY package*.json ./
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Copy the entire application code to the working directory
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Build the TypeScript code
|
17 |
+
RUN npm run build
|
18 |
+
|
19 |
+
# Expose the port on which your application will run
|
20 |
+
EXPOSE 4000
|
21 |
+
|
22 |
+
# Command to run the application
|
23 |
+
CMD ["npm", "start"]
|