https://github.com/asapdotid/nuxtjs-dockerize
NuxtJs Dockerize
https://github.com/asapdotid/nuxtjs-dockerize
Last synced: 4 months ago
JSON representation
NuxtJs Dockerize
- Host: GitHub
- URL: https://github.com/asapdotid/nuxtjs-dockerize
- Owner: asapdotid
- Created: 2024-02-14T05:05:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T13:21:24.000Z (over 1 year ago)
- Last Synced: 2024-12-27T16:43:04.479Z (5 months ago)
- Language: Makefile
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt 3 Minimal Starter Testing
Initial setup NuxtJs for docker image.
Docker image can find on Docker Hub: `asapdotid/nuxtjs-test:latest` multi platform `linux/amd64` & `linux/arm64`
| No | Platform | Size |
| :----: | :--------- | :-------- |
| 1 | linux/amd64 |  |
| 2 | linux/arm64 |  |Test running
```bash
docker run -it -p 3000:3000 asapdotid/nuxtjs-test:latest
```## Setup Docker Image
Config Docker Image Build:
- [x] Manual build
- [x] Github Workflows
- [ ] Google Cloud BuildConfig Application
- [ ] Update Application
### Manual setup using `Makefile`:
Initial make:
```bash
make init
```Build Application image:
```bash
make build
# or
make build-push
```- Initial Docker base image
- Install dependencies
- Build Application
- Release Application (Docker image)## Setup running NuxtJs
Make sure to install the dependencies:
```bash
# npm
npm install# pnpm
pnpm install# yarn
yarn install# bun
bun install
```## Development Server
Start the development server on `http://localhost:3000`:
```bash
# npm
npm run dev# pnpm
pnpm run dev# yarn
yarn dev# bun
bun run dev
```## Production
Build the application for production:
```bash
# npm
npm run build# pnpm
pnpm run build# yarn
yarn build# bun
bun run build
```Locally preview production build:
```bash
# npm
npm run preview# pnpm
pnpm run preview# yarn
yarn preview# bun
bun run preview
```Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.