-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the dependencies of Dapr sample apps
Signed-off-by: ytimocin <[email protected]>
- Loading branch information
Showing
10 changed files
with
318 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.