Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.
Start your Strapi application with autoReload enabled. Learn more
npm run develop
# or
yarn develop
Start your Strapi application with autoReload disabled. Learn more
npm run start
# or
yarn start
Build your admin panel. Learn more
npm run build
# or
yarn build
docker build -t play14-api .
Pay attention to the . at the end of the line
docker run -p 1337:1337 -it --env-file=./.env --name play14-api play14-api
This command uses the .env
file content to provide environement variables to the container. This is mostly useful for database configuration. Alternatively, you can use the -e
option.
For more information, refer to the docker run documentation