forked from ahenrij/etsmtl-log680-oxygencs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from FilGoodInc/compressed_oxygencs
Compressed oxygencs
- Loading branch information
Showing
5 changed files
with
40 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Ignore Python cache files | ||
__pycache__ | ||
*.pyc | ||
*.pyo | ||
|
||
# Ignore Git files | ||
.git | ||
.gitignore | ||
|
||
# Ignore Dockerfile and .dockerignore | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore local configuration files | ||
*.local | ||
*.log | ||
|
||
# Ignore unit test and coverage results | ||
*.coverage | ||
.coverage | ||
.coverage.* | ||
|
||
# Ignore pytest cache | ||
.pytest_cache | ||
|
||
# Ignore build artifacts | ||
build/ | ||
dist/ | ||
*.egg-info/ |
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
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
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,19 +1,17 @@ | ||
# Utiliser une image Python de base | ||
FROM python:3.8-slim | ||
|
||
# Définir le répertoire de travail | ||
WORKDIR /app | ||
|
||
# Copier les fichiers de l'application | ||
COPY . /app | ||
|
||
# Installer les dépendances | ||
RUN pip install --upgrade pip | ||
RUN pip install pipenv | ||
RUN pipenv install --deploy --ignore-pipfile | ||
RUN pip install --upgrade pip \ | ||
&& pip install pipenv | ||
|
||
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy --ignore-pipfile | ||
|
||
# Copier le fichier .env | ||
COPY .env /app/.env | ||
|
||
# Commande pour démarrer l'application | ||
ENV PIPENV_VENV_IN_PROJECT=1 | ||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
CMD ["pipenv", "run", "python", "src/main.py"] |
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