Skip to content

Commit

Permalink
Merge pull request #1 from Pixboost/bugfix/docker-mount
Browse files Browse the repository at this point in the history
Bugfix/docker mount
  • Loading branch information
dooman87 authored May 30, 2021
2 parents 9e34300 + a23dea0 commit 2a7a42d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on:
push:

jobs:
test:
name: Build
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker build -t lhci .
- name: Test
run: docker run --rm lhci lhci healthcheck --fatal
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:12.17-alpine3.11
FROM node:14.17-alpine3.11

RUN apk add --no-cache chromium
RUN npm install -g @lhci/cli@0.4.2
RUN npm install -g @lhci/cli@0.7.2

RUN addgroup lhci \
&& adduser \
Expand All @@ -15,4 +15,4 @@ USER lhci
WORKDIR /home/lhci

RUN mkdir .lighthouseci
VOLUME .lighthouseci
VOLUME ["/home/lhci/.lighthouseci"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/pixboost/lighthouse-ci-cli)](https://hub.docker.com/r/pixboost/lighthouse-ci-cli/)
[![Docker Pulls](https://img.shields.io/docker/pulls/pixboost/lighthouse-ci-cli)](https://hub.docker.com/r/pixboost/lighthouse-ci-cli/)
[![Travis (.org)](https://img.shields.io/travis/Pixboost/lighthouse-ci-docker)](https://travis-ci.org/Pixboost/lighthouse-ci-docker)
[![Build](https://github.com/Pixboost/lighthouse-ci-docker/actions/workflows/build.yml/badge.svg)](https://github.com/Pixboost/lighthouse-ci-docker/actions/workflows/build.yml)

Docker image for [Lighthouse CI CLI](https://github.com/GoogleChrome/lighthouse-ci)

## Advantages comparing to similar images

* Using alpine node image as a base and trying to keep it as small as possible. Currently - 160MB
* Using tags to pin a specific lhci version
* Travis CI build with healthcheck
* Not using `root` user
* GitHub Actions build with healthcheck
* Not using `root` user in a container

## Usage

Expand Down

0 comments on commit 2a7a42d

Please sign in to comment.