|
| 1 | +FROM owncloud/ubuntu:22.04-amd64@sha256:4c7cd5f9c40b28cd12ce780d7b34cb18ad4a6c7039bbb764d23edc8498ad2e6b |
| 2 | + |
| 3 | +LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \ |
| 4 | + org.opencontainers.image.title="ownCloud CI NodeJS" \ |
| 5 | + org.opencontainers.image.vendor="ownCloud GmbH" \ |
| 6 | + org.opencontainers.image.authors="ownCloud GmbH" \ |
| 7 | + org.opencontainers.image.description="ownCloud CI NodeJS" \ |
| 8 | + org.opencontainers.image.documentation="https://github.com/owncloud-ci/nodejs.git" \ |
| 9 | + org.opencontainers.image.url="https://github.com/owncloud-ci/nodejs" \ |
| 10 | + org.opencontainers.image.source="https://github.com/owncloud-ci/nodejs" |
| 11 | + |
| 12 | +ARG RETRY_VERSION |
| 13 | + |
| 14 | +# renovate: datasource=github-releases depName=owncloud-ci/retry |
| 15 | +ENV RETRY_VERSION="${RETRY_VERSION:-v2.0.0}" |
| 16 | +# renovate: datasource=npm depName=pnpm |
| 17 | +ENV PNPM_VERSION="${PNPM_VERSION:-10.20.0}" |
| 18 | + |
| 19 | +VOLUME ["/var/www/owncloud"] |
| 20 | + |
| 21 | +RUN apt-get update -y && \ |
| 22 | + apt-get install -y gettext file git-core build-essential libfontconfig libpng16-16 lsb-release firefox && \ |
| 23 | + curl -SsfL -o /usr/local/bin/retry "https://github.com/owncloud-ci/retry/releases/download/v${RETRY_VERSION##v}/retry" && \ |
| 24 | + chmod 755 /usr/local/bin/retry && \ |
| 25 | + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ |
| 26 | + curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \ |
| 27 | + apt-get update -y && \ |
| 28 | + apt-get install -y nodejs && \ |
| 29 | + wget -q -P /tmp https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ |
| 30 | + apt install -y /tmp/google-chrome-stable_current_amd64.deb && \ |
| 31 | + apt-get clean && \ |
| 32 | + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 33 | + |
| 34 | +RUN npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force |
| 35 | + |
| 36 | +COPY rootfs / |
| 37 | +WORKDIR /var/www/owncloud |
0 commit comments