Skip to content

Commit

Permalink
chore: make SDM image rootless (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron ("AJ") Steers <[email protected]>
  • Loading branch information
alafanechere and aaronsteers authored Dec 9, 2024
1 parent 547a4a2 commit a712441
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/airbyte/python-connector-base:2.0.0@sha256:c44839ba84406116e8ba68722a0f30e8f6e7056c726f447681bb9e9ece8bd916
FROM docker.io/airbyte/python-connector-base:3.0.0@sha256:1a0845ff2b30eafa793c6eee4e8f4283c2e52e1bbd44eed6cb9e9abd5d34d844

WORKDIR /airbyte/integration_code

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

# Set ownership of /airbyte to the non-root airbyte user and group (1000:1000)
RUN chown -R 1000:1000 /airbyte

# Set the entrypoint
ENV AIRBYTE_ENTRYPOINT="python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
USER airbyte

0 comments on commit a712441

Please sign in to comment.