-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds test coverage for alpine linux.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM node:alpine | ||
|
||
WORKDIR /app | ||
|
||
#install chromium/yarn | ||
RUN apk --update --no-cache add chromium xvfb curl bash binutils tar \ | ||
&& curl -o- -L https://yarnpkg.com/install.sh | bash \ | ||
&& apk del curl tar binutils | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
ENV DISPLAY :99.0 | ||
ENV CHROME_PATH /usr/lib/chrome | ||
|
||
#install | ||
RUN yarn --frozen-lockfile | ||
|
||
#copy rest of files in | ||
COPY . . | ||
|
||
#build everything | ||
RUN yarn build | ||
|
||
ENTRYPOINT [ "/bin/bash", "-c", "yarn test-formatting && yarn test" ] |