mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-27 12:14:45 +01:00
29 lines
506 B
Text
29 lines
506 B
Text
|
FROM centos:7
|
||
|
|
||
|
RUN yum install -y epel-release
|
||
|
|
||
|
# Install bzip2
|
||
|
RUN yum install -y bzip2
|
||
|
|
||
|
RUN yum install -y git
|
||
|
|
||
|
# Install nodejs 11
|
||
|
RUN curl -sL https://rpm.nodesource.com/setup_11.x | bash -
|
||
|
RUN yum install -y nodejs
|
||
|
|
||
|
# RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||
|
|
||
|
# Install smartwrap
|
||
|
RUN git clone --branch master https://www.github.com/tecfu/smartwrap
|
||
|
|
||
|
# Install grunt
|
||
|
RUN npm install grunt-cli -g
|
||
|
|
||
|
# Install dev dependencies
|
||
|
WORKDIR /smartwrap
|
||
|
RUN npm install
|
||
|
|
||
|
# Run unit tests
|
||
|
RUN node -v
|
||
|
RUN npm test
|