Skip to content

Conversation

@sattvikc
Copy link
Collaborator

Summary of change

(A few sentences about this PR)

Related issues

  • Link to issue1 here
  • Link to issue1 here

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here
highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • pluginInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In build.gradle
  • Had installed and ran the pre-commit hook
  • If there are new dependencies that have been added in build.gradle, please make sure to add them
    in implementationDependencies.json.
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the
      latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • When adding new recipes, ensure that its performance is being measured in the OneMillionUsersTest

Remaining TODOs for this PR

  • Item1
  • Item2

Comment on lines +41 to +42
COPY --from=tmp --chown=supertokens /usr/lib/supertokens /usr/lib/supertokens
COPY --from=tmp --chown=supertokens /usr/bin/supertokens /usr/bin/supertokens
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The COPY commands reference source paths (/usr/lib/supertokens and /usr/bin/supertokens) that don't exist in the tmp stage. The JRE is extracted to /build/jre but never copied to these destination paths.

To fix this, add commands in the tmp stage to create these directories and copy the necessary files:

# In the tmp stage, before the final RUN command:
RUN mkdir -p /usr/lib/supertokens /usr/bin/supertokens
RUN cp -r ./jre ./config.yaml ./version.yaml ./cli ./core ./plugin-interface ./plugin ./ee /usr/lib/supertokens/
# Create a symlink or copy the startup script to the bin directory
RUN echo '#!/bin/sh\njava -classpath "/usr/lib/supertokens/cli/*" io.supertokens.cli.Main $@' > /usr/bin/supertokens && chmod +x /usr/bin/supertokens

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@sattvikc sattvikc merged commit bdae618 into 7.1 Aug 18, 2025
3 of 4 checks passed
@sattvikc sattvikc deleted the for-backport-release-9-1 branch August 18, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants