Dockerfile + doc changes

This commit is contained in:
Grégoire Mureau 2025-07-09 11:29:26 +02:00
parent 31950ad41a
commit 7c6899a0bc
6 changed files with 28 additions and 4 deletions

View file

@ -14,4 +14,5 @@ tests/
*.env
# Ignorer fichier conf amazon web services
*aws.json
*aws*
.elasticbeanstalk

10
deployment/api/.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
# ssh .pem files
*.pem
*aws

View file

@ -13,8 +13,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copier le reste du code source
COPY . .
# Exposer les ports 8000 (fastAPI) et 8501 (streamlit)
EXPOSE 8000 8501
# Exposer les ports et 8501 (streamlit) et 8000 (fastAPI)
EXPOSE 8501 8000
RUN chmod +x /app/start.sh

View file

@ -0,0 +1,13 @@
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "grgmdmn/sentiment_api:latest",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "8000"
}
],
"Logging": "/var/log/nginx"
}

0
deployment/api/EV3 Normal file
View file

View file

@ -1,4 +1,3 @@
version: "3.9"
services:
api:
build: