19 lines
548 B
Docker
19 lines
548 B
Docker
# Use a base Python image
|
|
FROM registry.suse.com/bci/bci-base:15.7
|
|
|
|
# Install any necessary dependencies for the bot
|
|
# e.g., git, curl, etc.
|
|
RUN zypper -n in git-core curl binutils
|
|
|
|
# Copy the bot binary and its entrypoint script
|
|
COPY obs-staging-bot/obs-staging-bot /usr/local/bin/obs-staging-bot
|
|
COPY obs-staging-bot/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
# Create a non-root user to run the bot
|
|
RUN useradd -m -u 1001 bot
|
|
USER 1001
|
|
|
|
# Set the entrypoint
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|