Skip to content

Personal blog for sharing Sistracia's journey in programming.

License

Notifications You must be signed in to change notification settings

sistracia/sistracia.com

Repository files navigation

sistracia.com

Personal blog for sharing Sistracia's journey in programming.

Development

Prerequisite Tools

Install dependencies

dotnet restore

Start Development

dotnet run

Using Docker

See the Dockerfile here.

Create .env file, see example.

PORT=<ports that the server should listen on for requests>
HOSTNAME=<addresses that the server should listen on for requests>
ASPNETCORE_URLS=http://${HOSTNAME}:${PORT}
Run with Docker Compose
docker compose -f docker-compose.development.yaml up

Deployment

Using Docker

# Build
docker build -t sistracia .

# Tag
docker image tag sistracia:latest <docker-registry>/sistracia:latest

# Push
docker image push <docker-registry>/sistracia:latest

Try Run Docker Image

Create .env file, see example.

ASPNETCORE_URLS=<SERVER APP HOST AND PORT INSIDE Docker>

Run the Docker image

docker run --env-file ./.env -p <PUBLISHD PORT>:<SERVER APP PORT INSIDE Docker> sistracia
## or
docker run \
-e ASPNETCORE_URLS="<SERVER APP HOST AND PORT INSIDE Docker>" \
-p <PUBLISHD PORT>:<SERVER APP PORT INSIDE Docker> \
sistracia