Skip to content

Commit 016650c

Browse files
committed
Add Dockerfile for Node.js application setup and update localPath in config
1 parent 8320c46 commit 016650c

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

upload-api/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use an official Node.js runtime as a base image
2+
FROM --platform=linux/amd64 node:24.0.1-slim
3+
4+
# Set the working directory in 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 application dependencies
11+
RUN npm install
12+
13+
# Copy the application code to the container
14+
COPY . .
15+
16+
# Expose the port your app will run on
17+
EXPOSE 3000
18+
19+
# Define the command to run your application
20+
CMD ["node", "index.js"]

upload-api/src/config/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ export default {
1212
bucketName: '',
1313
bucketKey: ''
1414
},
15-
// localPath: '/Users/sayali.joshi/Downloads/contentfulDummyEmbedData.json' //package 45.zip'
16-
localPath: '/Users/shobhit.upadhyay/Downloads/asic.json'
15+
localPath: 'your-local-legacy-cms-path',
1716
};

0 commit comments

Comments
 (0)