diff --git a/assets/docker/Dockerfile.frontend-js.tmpl b/assets/docker/Dockerfile.frontend-js.tmpl index a6911f6..ea99ce7 100644 --- a/assets/docker/Dockerfile.frontend-js.tmpl +++ b/assets/docker/Dockerfile.frontend-js.tmpl @@ -19,8 +19,6 @@ COPY --from=build-env /app /app WORKDIR /app -EXPOSE 3000 - USER node -CMD npx http-server -p 3000 ./build +CMD npx http-server -p 8080 ./build diff --git a/example/frontend-js/build/index.html b/example/frontend-js/build/index.html new file mode 100644 index 0000000..ee7a0cd --- /dev/null +++ b/example/frontend-js/build/index.html @@ -0,0 +1,14 @@ + + + + + + + Initium Frontend Sample + + + + Welcome to Initium! + + + diff --git a/example/frontend-js/dist/index.js b/example/frontend-js/dist/index.js deleted file mode 100644 index 98551b6..0000000 --- a/example/frontend-js/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log('index') diff --git a/src/cli/template_test.go b/src/cli/template_test.go index 74cf924..7400856 100644 --- a/src/cli/template_test.go +++ b/src/cli/template_test.go @@ -74,11 +74,9 @@ COPY --from=build-env /app /app WORKDIR /app -EXPOSE 3000 - USER node -CMD npx http-server -p 3000 ./build +CMD npx http-server -p 8080 ./build `