-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/bento-platform/bento_base_image:python-debian-2024.11.01
# Backwards-compatible with old BentoV2 container layout
WORKDIR /drop-box
COPY pyproject.toml .
COPY poetry.lock .
# Install production dependencies
# Without --no-root, we get errors related to the code not being copied in yet.
# But we don't want the code here, otherwise Docker cache doesn't work well.
RUN poetry config virtualenvs.create false && poetry install --without dev --no-root
# Manually copy only what's relevant
# (Don't use .dockerignore, which allows us to have development containers too)
COPY bento_drop_box_service bento_drop_box_service
COPY entrypoint.bash .
COPY run.bash .
COPY LICENSE .
COPY README.md .
# Install the module itself, locally (similar to `pip install -e .`)
RUN poetry install --without dev
ENTRYPOINT [ "bash", "./entrypoint.bash" ]
CMD [ "bash", "./run.bash" ]