CoolFace
Apppublic

Noveramaaz/Text_classification_API_Docker

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
README.Docker.md22 linesDownload Raw Back to root
1### Building and running your application2 3When you're ready, start your application by running:4`docker compose up --build`.5 6Your application will be available at http://localhost:8000.7 8### Deploying your application to the cloud9 10First, build your image, e.g.: `docker build -t myapp .`.11If your cloud uses a different CPU architecture than your development12machine (e.g., you are on a Mac M1 and your cloud provider is amd64),13you'll want to build the image for that platform, e.g.:14`docker build --platform=linux/amd64 -t myapp .`.15 16Then, push it to your registry, e.g. `docker push myregistry.com/myapp`.17 18Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/)19docs for more detail on building and pushing.20 21### References22* [Docker's Python guide](https://docs.docker.com/language/python/)