-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.Dockerfile
31 lines (24 loc) · 1009 Bytes
/
dev.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
27
28
29
30
31
FROM ghcr.io/bento-platform/bento_base_image:python-debian-2024.12.12
LABEL org.opencontainers.image.description="Local development image for the Bento reference service."
LABEL devcontainer.metadata='[{ \
"remoteUser": "bento_user", \
"customizations": { \
"vscode": { \
"extensions": ["ms-python.python", "eamodio.gitlens"], \
"settings": {"workspaceFolder": "/reference"} \
} \
} \
}]'
WORKDIR /reference
COPY pyproject.toml .
COPY poetry.lock .
COPY run.dev.bash .
# Install production + development 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 --no-cache install --no-root
# Tell the service that we're running a local development container
ENV BENTO_CONTAINER_LOCAL=true
# Don't copy in actual code, since it'll be mounted in via volume for development
CMD [ "bash", "./run.dev.bash" ]