Personal blog for sharing Sistracia's journey in programming.
- .NET 8.0
dotnet restore
dotnet run
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}
docker compose -f docker-compose.development.yaml up
# Build
docker build -t sistracia .
# Tag
docker image tag sistracia:latest <docker-registry>/sistracia:latest
# Push
docker image push <docker-registry>/sistracia:latest
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