A simple example to run Java Serverless Functions on top of Scaleway Serverless Containers
The example is strongly inspired by this Flask project written in Python with PORT definition by Environment variable.
- Install and configure Serverless Framework
- Install the Scaleway plugin
- For local testing install Java and Maven
The java-container folder contains a classic maven project with pom.xml and Dockerfile
- Build maven project and test locally
mvn clean package
- Deploy your project to Scaleway Containers The Dockerfile build your maven project and create a new docker image.
serverless deploy