Files

19 lines
523 B
Docker
Raw Permalink Normal View History

2023-09-15 11:32:34 -04:00
# Set the base image to use for subsequent instructions
FROM alpine:3.23
2019-08-03 21:11:09 -07:00
2023-09-15 11:32:34 -04:00
# Set the working directory inside the container
WORKDIR /usr/src
2019-08-03 21:11:09 -07:00
2023-09-15 11:32:34 -04:00
# Copy any source file(s) required for the action
COPY entrypoint.sh .
2025-12-05 11:24:37 -05:00
# Create a non-root user and switch to it
RUN addgroup -S actiongroup && adduser -S actionuser -G actiongroup && \
chown -R actionuser:actiongroup /usr/src && \
chmod +x /usr/src/entrypoint.sh
USER actionuser
2023-09-15 11:32:34 -04:00
# Configure the container to be run as an executable
ENTRYPOINT ["/usr/src/entrypoint.sh"]