Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: docker (again) #763

Merged
merged 13 commits into from
Feb 15, 2023
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
11 changes: 2 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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