Skip to content

Commit 090ffc9

Browse files
committed
fix debug container to use build target
1 parent b4e1b7b commit 090ffc9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/_container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ jobs:
8181
with:
8282
context: .
8383
push: true
84-
target: developer
84+
target: build
8585
tags: ${{ steps.meta-debug.outputs.tags }}
8686
labels: ${{ steps.meta-debug.outputs.labels }}

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,22 @@ ENV PATH=/venv/bin:$PATH
2020

2121
# The build stage installs the context into the venv
2222
FROM developer AS build
23+
2324
# Requires buildkit 0.17.0
2425
COPY --chmod=o+wrX . /workspaces/fastcs-example
2526
WORKDIR /workspaces/fastcs-example
2627
RUN touch dev-requirements.txt && pip install -c dev-requirements.txt .[demo]
2728

28-
2929
# The runtime stage copies the built venv into a slim runtime container
3030
FROM python:${PYTHON_VERSION}-slim AS runtime
3131

32-
# Add apt-get system dependecies for runtime
32+
# Add apt-get system dependencies for runtime (enough to enable debugging)
3333
RUN apt-get update && apt-get install -y --no-install-recommends \
3434
gdb \
35+
busybox \
3536
&& rm -rf /var/lib/apt/lists/*
3637

38+
RUN busybox --install -s
3739

3840
COPY --from=build /venv/ /venv/
3941
ENV PATH=/venv/bin:$PATH

0 commit comments

Comments
 (0)