🔥 Remove logic for development dependencies and Jupyter, it was never documented, and I no longer use that trick (#1355)

This commit is contained in:
Sebastián Ramírez
2024-09-23 13:39:54 +02:00
committed by GitHub
parent 7ed8694643
commit c8104d8ced
3 changed files with 1 additions and 10 deletions

View File

@@ -11,9 +11,7 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python
# Copy poetry.lock* in case it doesn't exist in the repo # Copy poetry.lock* in case it doesn't exist in the repo
COPY ./pyproject.toml ./poetry.lock* /app/ COPY ./pyproject.toml ./poetry.lock* /app/
# Allow installing dev dependencies to run tests RUN poetry install --no-root
ARG INSTALL_DEV=false
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
ENV PYTHONPATH=/app ENV PYTHONPATH=/app

View File

@@ -58,12 +58,9 @@ services:
backend: backend:
restart: "no" restart: "no"
ports: ports:
- "8888:8888"
- "8000:8000" - "8000:8000"
build: build:
context: ./backend context: ./backend
args:
INSTALL_DEV: ${INSTALL_DEV-true}
# command: sleep infinity # Infinite loop to keep container alive doing nothing # command: sleep infinity # Infinite loop to keep container alive doing nothing
command: command:
- fastapi - fastapi

View File

@@ -46,8 +46,6 @@ services:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}' image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
build: build:
context: ./backend context: ./backend
args:
INSTALL_DEV: ${INSTALL_DEV-false}
networks: networks:
- traefik-public - traefik-public
- default - default
@@ -118,8 +116,6 @@ services:
build: build:
context: ./backend context: ./backend
args:
INSTALL_DEV: ${INSTALL_DEV-false}
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.docker.network=traefik-public - traefik.docker.network=traefik-public