Skip to content

Commit

Permalink
feat(deploy): test deployment to kubernetes azure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 29, 2024
1 parent afc82ec commit 27d07b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions production/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ WORKDIR /app
COPY . /app

# Installer les dépendances sans les dev packages
RUN poetry config virtualenvs.create true && poetry install --no-root --only main
RUN poetry config virtualenvs.create false && poetry install --no-root --only main

# Stocker les chemins des binaires dans des fichiers temporaires
RUN which llvm-config > /llvm_path && \
Expand Down Expand Up @@ -68,7 +68,7 @@ COPY --chown=appuser:appuser --from=build /app /app
USER appuser

# Ajouter l'environnement virtuel au PATH
ENV PATH="/usr/local/bin:/app/.venv/bin:${PATH}"
ENV PATH="/usr/local/bin:${PATH}"

# Commande pour démarrer l'application
CMD ["python", "./app/main.py"]
4 changes: 2 additions & 2 deletions production/ia-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ WORKDIR /app
COPY . /app

# Installer les dépendances sans les dev packages
RUN poetry config virtualenvs.create true && poetry install --no-root --only main
RUN poetry config virtualenvs.create false && poetry install --no-root --only main

# Stocker les chemins des binaires dans des fichiers temporaires
RUN which llvm-config > /llvm_path && \
Expand Down Expand Up @@ -68,7 +68,7 @@ COPY --chown=appuser:appuser --from=build /app /app
USER appuser

# Ajouter l'environnement virtuel au PATH
ENV PATH="/usr/local/bin:/app/.venv/bin:${PATH}"
ENV PATH="/usr/local/bin:${PATH}"

# Commande pour démarrer l'application
CMD ["python", "./app/main.py"]

0 comments on commit 27d07b4

Please sign in to comment.