2023-12-28 06:00:46 +00:00
|
|
|
# Use a base image that includes necessary environments (e.g., Node.js)
|
|
|
|
FROM node:18.17.0
|
|
|
|
|
|
|
|
# Install Bun
|
2023-12-28 06:08:05 +00:00
|
|
|
RUN npm install -g bun
|
2023-12-28 06:00:46 +00:00
|
|
|
|
|
|
|
# Set the working directory in the container
|
2023-12-28 06:04:58 +00:00
|
|
|
WORKDIR /app
|
2023-12-28 06:00:46 +00:00
|
|
|
|
|
|
|
# Copy your action's source files to the container
|
|
|
|
COPY . .
|
|
|
|
|
2023-12-28 06:04:31 +00:00
|
|
|
COPY entrypoint.sh /
|
|
|
|
|
2023-12-28 06:00:46 +00:00
|
|
|
# Command to run when the Docker container starts
|
|
|
|
# It assumes the entrypoint is a script that handles the inputs and runs the desired commands
|
2023-12-28 06:04:31 +00:00
|
|
|
ENTRYPOINT ["sh", "/entrypoint.sh"]
|