diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..d4d0dff32 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:16-alpine + +COPY . /rdme + +RUN cd /rdme && npm ci && npm run build + +CMD ["sh", "-c", "/rdme/bin/rdme $INPUT_RDME"] diff --git a/action.yml b/action.yml index db18fef66..f7217e247 100644 --- a/action.yml +++ b/action.yml @@ -9,12 +9,5 @@ inputs: description: Command to pass into rdme required: true runs: - using: composite - steps: - - name: Set up rdme - run: npm install --silent --no-save && npm run build --silent - shell: bash - working-directory: ${{ github.action_path }} - - name: Execute rdme command - run: ${{ github.action_path }}/bin/rdme ${{ inputs.rdme }} - shell: bash + using: docker + image: Dockerfile