Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 744 Bytes

File metadata and controls

38 lines (25 loc) · 744 Bytes

Docker Deployment

1. Build the image

From source (default):

docker build -t datastoria -f docker/Dockerfile .

With prebuilt artifacts (CI / fast):

-- run build outside docker
npm run build

docker build -t datastoria -f docker/Dockerfile --target runner-prebuilt --build-arg BUILD_FROM_SOURCE=0 .

2. Run the container

Basic:

docker run --name datastoria -p 3000:3000 datastoria

With environment file:

docker run --name datastoria -p 3000:3000 --env-file .env datastoria

3. Access the application

Open http://localhost:3000

Environment Variables

Create a .env file in the project root. See .env.example for available options.