This is my start### Build the Docker image
docker build -t online-cv .For compatibility with both Intel/AMD and Apple Silicon (M1/M2) processors:
# Create a new builder instance (one-time setup)
docker buildx create --name multiplatform --use
# Build for multiple platforms
docker buildx build --platform linux/amd64,linux/arm64 -t online-cv:latest .
```rtfolio that I worked on based on the template from [Vercel](https://portfolio-blog-starter.vercel.app).
## Documentation
- [Content Management](./Docs/CONTENT_MANAGEMENT.md)
## How to Use
Clone this repository and then run:
```bash
npm install --legacy-peer-depsAfterwards
npm run devnpm run buildTo run the application using Docker:
docker build -t onlinecv .docker run -p 80:80
-e COSMOS_ENDPOINT=https://your-cosmos-account.documents.azure.com:443/
-e COSMOS_KEY=your_cosmos_key_here
-e COSMOS_DATABASE=your_db_here
-e COSMOS_CONTAINER=your_container_here
onlinecvImportant: Do not use quotes around the environment variable values when using -e flag.
Environment Variables:
COSMOS_ENDPOINT: Your Azure Cosmos DB endpoint URL (without quotes)COSMOS_KEY: Your Azure Cosmos DB access key (without quotes)COSMOS_DATABASE: Database name (defaults to "onlineCv")COSMOS_CONTAINER: Container name (defaults to "experience")NODE_ENV: Set to "production" for production builds
Alternative with .env file:
Create a .env file with these variables (without quotes):
COSMOS_ENDPOINT=https://your-cosmos-account.documents.azure.com:443/
COSMOS_KEY=your_cosmos_key_here
COSMOS_DATABASE=onlineCv
COSMOS_CONTAINER=experience
NODE_ENV=productionThen run:
docker run -p 80:80 --env-file .env onlinecvThe application will be available at http://localhost:80
To deploy your Docker image to Azure Container Registry for use with Azure services:
az acr login --name <your-registry-name>docker tag <local-container-name> <your-registry-name>.azurecr.io<remote-container-name>:latestdocker push <your-registry-name>.azurecr.io<remote-container-name>:latestPlease initiate an issue to report any problems with this project.