🔥 Remove logic for development dependencies and Jupyter, it was never documented, and I no longer use that trick (#1355)
This commit is contained in:

committed by
GitHub

parent
7ed8694643
commit
c8104d8ced
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user