Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 850a6af1
authored
Oct 15, 2024
by
Svend
Committed by
GitHub
Oct 15, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fix the issues with the local build docker script (#4647)
1 parent
d5a210f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
package.json
scripts/deploy/Dockerfile
scripts/deploy/build-local-docker-image.sh
package.json
View file @
850a6af
...
...
@@ -28,7 +28,7 @@
"build"
:
"cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build"
,
"build:analyze"
:
"turbo build:analyze"
,
"build:antd"
:
"pnpm run build --filter=@vben/web-antd"
,
"build:docker"
:
"./build-local-docker-image.sh"
,
"build:docker"
:
"./
scripts/deploy/
build-local-docker-image.sh"
,
"build:docs"
:
"pnpm run build --filter=@vben/docs"
,
"build:ele"
:
"pnpm run build --filter=@vben/web-ele"
,
"build:naive"
:
"pnpm run build --filter=@vben/web-naive"
,
...
...
scripts/deploy/Dockerfile
View file @
850a6af
...
...
@@ -18,12 +18,12 @@ RUN pnpm run build
RUN
echo
"Builder Success 🎉"
FROM
nginx:stable-alpine
as
production
FROM
nginx:stable-alpine
AS
production
RUN
echo
"types { application/javascript js mjs; }"
> /etc/nginx/conf.d/mjs.conf
COPY --from=builder /app/playground/dist /usr/share/nginx/html
COPY
.
/nginx.conf /etc/nginx/nginx.conf
COPY
--from=builder /app/scripts/deploy
/nginx.conf /etc/nginx/nginx.conf
EXPOSE
8080
...
...
scripts/deploy/build-local-docker-image.sh
View file @
850a6af
...
...
@@ -24,7 +24,7 @@ function install_dependencies() {
function
build_image
()
{
# build docker
docker build . -f Dockerfile -t
${
IMAGE_NAME
}
||
ERROR
=
"build_image failed"
docker build .
./../
-f Dockerfile -t
${
IMAGE_NAME
}
||
ERROR
=
"build_image failed"
}
function
log_message
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment