Changing port

This commit is contained in:
MangoPig 2025-12-09 19:59:46 +00:00
parent 6333829715
commit 8a8b1d4b68
4 changed files with 25 additions and 67 deletions

View File

@ -19,7 +19,7 @@ services:
context: ./frontend
target: production
ports:
- ${SERVER_FRONTEND_PORT}:3000
- ${SERVER_FRONTEND_PORT}:5000
env_file:
- .env
profiles:

View File

@ -37,7 +37,7 @@ RUN npm install -g serve
COPY --from=build /app/dist ./dist
COPY serve.json ./dist
# Expose the port you want for production (e.g., 3000 or 80)
EXPOSE 3000
# Expose the port you want for production (e.g., 3000)
EXPOSE 5000
CMD ["serve", "dist", "-l", "3000", "--config", "serve.json"]
CMD ["serve", "dist", "-l", "5000", "--config", "serve.json"]

View File

@ -1,43 +1 @@
# Astro Starter Kit: Minimal
```sh
npm create astro@latest -- --template minimal
```
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
#

View File

@ -1,22 +1,22 @@
{
"name": "web-dev",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.3.12",
"@astrojs/solid-js": "^5.1.3",
"astro": "^5.16.4",
"astro-expressive-code": "^0.41.3",
"serve": "^14.2.5",
"solid-js": "^1.9.10"
},
"devDependencies": {
"sass": "^1.94.2"
}
"name": "web-dev",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.3.12",
"@astrojs/solid-js": "^5.1.3",
"astro": "^5.16.4",
"astro-expressive-code": "^0.41.3",
"serve": "^14.2.5",
"solid-js": "^1.9.10"
},
"devDependencies": {
"sass": "^1.94.2"
}
}