-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maysun J Faisal <[email protected]>
- Loading branch information
1 parent
ad5ff4c
commit adf74d8
Showing
4 changed files
with
27 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Sample copied from https://github.com/nodeshift-starters/devfile-sample/blob/main/Dockerfile | ||
|
||
# Install the app dependencies in a full Node docker image | ||
FROM registry.access.redhat.com/ubi8/nodejs-14:latest | ||
|
||
# Copy package.json and package-lock.json | ||
COPY package*.json ./ | ||
|
||
# Install app dependencies | ||
RUN npm install --production | ||
|
||
# Copy the dependencies into a Slim Node docker image | ||
FROM registry.access.redhat.com/ubi8/nodejs-14-minimal:latest | ||
|
||
# Install app dependencies | ||
COPY --from=0 /opt/app-root/src/node_modules /opt/app-root/src/node_modules | ||
COPY . /opt/app-root/src | ||
|
||
ENV NODE_ENV production | ||
ENV PORT 3001 | ||
|
||
CMD ["npm", "start"] |
File renamed without changes.