This demonstrates a simple example of running the NGINX base image on Scaleway Serverless Containers.
This example assumes you are familiar with how serverless containers work. If needed, you can check the Scaleway official documentation.
This example uses the Scaleway Serverless Framework Plugin. Please set up your environment with the requirements stated in the Scaleway Serverless Framework Plugin before trying out the example.
Once your environment is set up, you can deploy your container with:
npm install
serverless deploy
When the deployment is complete, you should be able to curl
the container's endpoint or hit it from a browser and see the NGINX default page.
To serve custom resource from your NGINX container, you will need to:
- Build a custom image containing these files
- Push this image to a publicly accessible repo, or a private Scaleway container repo
- Update the
registryImage
field in theserverless.yml
file to point to your image, and redeploy