Dockerfile + doc changes
This commit is contained in:
parent
31950ad41a
commit
7c6899a0bc
6 changed files with 28 additions and 4 deletions
|
|
@ -14,4 +14,5 @@ tests/
|
|||
*.env
|
||||
|
||||
# Ignorer fichier conf amazon web services
|
||||
*aws.json
|
||||
*aws*
|
||||
.elasticbeanstalk
|
||||
|
|
|
|||
10
deployment/api/.gitignore
vendored
Normal file
10
deployment/api/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# Elastic Beanstalk Files
|
||||
.elasticbeanstalk/*
|
||||
!.elasticbeanstalk/*.cfg.yml
|
||||
!.elasticbeanstalk/*.global.yml
|
||||
|
||||
# ssh .pem files
|
||||
*.pem
|
||||
|
||||
*aws
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
13
deployment/api/Dockerrun.aws.json
Normal file
13
deployment/api/Dockerrun.aws.json
Normal 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
0
deployment/api/EV3
Normal file
|
|
@ -1,4 +1,3 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
Loading…
Add table
Reference in a new issue