-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Dockerfile.yaml Add Dockerfile * Update README.md Add Readme.md
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use node as the builder image | ||
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/guergeiro/pnpm:18-9 | ||
|
||
# Maintainer information | ||
MAINTAINER [email protected] | ||
|
||
# Showing that port 3000 can be published | ||
EXPOSE 3000 | ||
|
||
# Copy the oneimg file from the local directory to the /app directory inside the container | ||
COPY . /app | ||
|
||
# Change the working directory to /app | ||
WORKDIR /app | ||
|
||
# Building the html code | ||
RUN pnpm install --registry=https://registry.npmmirror.com/ | ||
|
||
#Start server | ||
CMD pnpm dev -H 0.0.0.0 |
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