Skip to content

Commit

Permalink
Update the dependencies of Dapr sample apps
Browse files Browse the repository at this point in the history
Signed-off-by: ytimocin <[email protected]>
  • Loading branch information
ytimocin committed Dec 30, 2024
1 parent 958dca8 commit fdb66da
Show file tree
Hide file tree
Showing 10 changed files with 318 additions and 672 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,6 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# DS_Store files
**/.DS_Store
19 changes: 16 additions & 3 deletions samples/dapr/nodeapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
FROM node:8-alpine
FROM node:20-alpine

# Set the working directory
WORKDIR /app
COPY . .

# Copy package.json and package-lock.json first to leverage Docker cache
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Expose the application port
EXPOSE 3000
CMD [ "node", "app.js" ]

# Define the command to run the application
CMD ["node", "app.js"]
Loading

0 comments on commit fdb66da

Please sign in to comment.