This is a project for practicing Cloud development. We implement a simple Flask server for creating and getting Dishes and Meals
- Have Docker installed
- Use the Dockerfile to create an image, e.g.
docker build -t flask .
- Use
docker run --rm -p 8000:8000 flask
to run a container
- You can see the test.py with a usage example with some tests
- It is suggested you create a virtual environment for running the test
- You will need to have the
requests
library installed
- Build with specifying the port:
docker build -t flask . --build-arg port=3000
- Run with specified port:
docker run --rm -p 8000:3000 flask