Skip to content

Commit a712441

Browse files
chore: make SDM image rootless (#147)
Co-authored-by: Aaron ("AJ") Steers <[email protected]>
1 parent 547a4a2 commit a712441

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/airbyte/python-connector-base:2.0.0@sha256:c44839ba84406116e8ba68722a0f30e8f6e7056c726f447681bb9e9ece8bd916
1+
FROM docker.io/airbyte/python-connector-base:3.0.0@sha256:1a0845ff2b30eafa793c6eee4e8f4283c2e52e1bbd44eed6cb9e9abd5d34d844
22

33
WORKDIR /airbyte/integration_code
44

@@ -23,6 +23,10 @@ RUN mkdir -p source_declarative_manifest \
2323
# Remove unnecessary build files
2424
RUN rm -rf dist/ pyproject.toml poetry.lock README.md
2525

26+
# Set ownership of /airbyte to the non-root airbyte user and group (1000:1000)
27+
RUN chown -R 1000:1000 /airbyte
28+
2629
# Set the entrypoint
2730
ENV AIRBYTE_ENTRYPOINT="python /airbyte/integration_code/main.py"
2831
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
32+
USER airbyte

0 commit comments

Comments
 (0)