docs
  1. SCAYLE Resource Center
  2. Developer Guide
  3. Deployments
  4. Using Docker

Docker

The following document outlines how to build the Storefront Application using a Docker Image, easily deployable to your preferred Cloud Provider.

Prerequisites

  • The latest version of Docker installed

Building the Image

The Storefront Boilerplate comes with a production-ready Dockerfile, which will handle the installation of all required dependencies, and the build process, and produce a final image to be deployed.

Building the image is as easy as running the below command:

docker build -t storefront-boilerplate -f docker/node/Dockerfile.

Once completed, you should get your deployable Docker Image after running:

docker images

Cloud Providers

You are ready to push this Docker Image to your preferred Cloud Provider and start running the application.

Or any other platform that supports running Docker Images.

Injecting configuration

Since your local .env is not bundled with the Docker Image, we must inject the environment variables into the container during runtime when running the image on a Cloud Provider.

Check your Cloud Provider to see how best to inject the configuration into the container runtime securely.