-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
24 lines (18 loc) · 647 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM rust
LABEL "com.github.actions.name"="Criterion compare"
LABEL "com.github.actions.description"="Compare the performance of a PR against master"
LABEL "com.github.actions.icon"="refresh-cw"
LABEL "com.github.actions.color"="purple"
# Install critcmp
RUN cargo install critcmp
# Install Node.js
ENV NODE_VERSION 16.0.0
ENV PATH /root/.nvm/versions/node/v$NODE_VERSION/bin:$PATH
RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
# Check that Node.js was correctly installed
RUN node --version
# Copy over project files
COPY . .
# Install dependencies
RUN npm install
ENTRYPOINT ["node", "/entrypoint.js"]