mirror of
https://github.com/actions/container-toolkit-action.git
synced 2025-12-10 20:10:25 +00:00
15 lines
369 B
Docker
15 lines
369 B
Docker
# Set the base image to use for subsequent instructions
|
|
FROM node:slim
|
|
|
|
# Create a directory for the action code
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
# Set the working directory inside the container.
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy the repository contents to the container
|
|
COPY . .
|
|
|
|
# Run the specified command within the container
|
|
ENTRYPOINT ["node", "/usr/src/app/dist/index.js"]
|