fix: add node-gyp dependencies necessary to build sqlite3 (#144)

This commit is contained in:
William Boman 2022-08-12 18:41:38 +02:00 committed by GitHub
parent 034fc052b0
commit 51d9940ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View file

@ -13,8 +13,6 @@ jobs:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
dockerfile: [Dockerfile]
steps:
- name: Checkout
uses: actions/checkout@v1
@ -47,5 +45,4 @@ jobs:
env:
PLATFORMS: linux/amd64,linux/arm64/v8,linux/arm/v7
DOCKER_REPOSITORY: thelounge/thelounge
DOCKERFILE: ${{ matrix.dockerfile }}
run: ./scripts/build-and-push.sh

View file

@ -46,7 +46,7 @@ jobs:
exit $s
- name: Check for no ERROR logs
run: docker logs thelounge | grep "\[ERROR\]" && exit 1 || exit 0
run: docker logs thelounge 2>&1 | grep -vz "\[ERROR\]"
- name: Check for config.js to be created in the mounted host system directory
run: stat "${mount_dir}/config.js"

View file

@ -16,7 +16,9 @@ COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
# Install thelounge.
ARG THELOUNGE_VERSION=4.3.1
RUN apk --update --no-cache --virtual build-deps add git && \
RUN apk --update --no-cache --virtual build-deps add python3 build-base git && \
ln -sf python3 /usr/bin/python && \
yarn --non-interactive --frozen-lockfile global add thelounge@${THELOUNGE_VERSION} && \
yarn --non-interactive cache clean && \
apk del build-deps
apk del --purge build-deps && \
rm -rf /root/.cache /tmp /usr/bin/python

View file

@ -19,5 +19,5 @@ docker buildx build \
--platform "${PLATFORMS}" \
--tag "${DOCKER_REPOSITORY}:${TAG}" \
"${EXTRA_ARG[@]}" \
--file "${DOCKERFILE}" \
--file Dockerfile \
.