forked from DataScientest-Studio/Template_MLOps_accidents
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8aede7
commit c69bae9
Showing
4 changed files
with
50,149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
FROM postgres:13 | ||
|
||
# Définir les variables d'environnement pour PostgreSQL | ||
ENV POSTGRES_DB=accidents | ||
ENV POSTGRES_USER=my_user | ||
ENV POSTGRES_PASSWORD=your_password | ||
|
||
# Copier le fichier CSV et le script SQL dans le répertoire d'initialisation de PostgreSQL | ||
COPY ./data_2005a2021_final.csv /docker-entrypoint-initdb.d/data_2005a2021_final.csv | ||
COPY ./init.sql /docker-entrypoint-initdb.d/init.sql | ||
# Récupérer et afficher les résultats |
Oops, something went wrong.