Files

19 lines
528 B
Docker
Raw Permalink Normal View History

2023-12-08 10:55:58 -05:00
# Set the base image to use for subsequent instructions.
FROM alpine:3.23
2023-12-08 10:33:30 -05:00
2023-12-08 10:55:58 -05:00
# Set the working directory inside the container.
2023-12-08 10:33:30 -05:00
WORKDIR /usr/src
2023-12-08 10:55:58 -05:00
# Copy any source file(s) required for the action.
2023-12-08 10:33:30 -05:00
COPY entrypoint.sh .
2025-12-05 11:29:04 -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-12-08 10:55:58 -05:00
# Configure the container to be run as an executable.
2023-12-08 10:33:30 -05:00
ENTRYPOINT ["/usr/src/entrypoint.sh"]