Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cypress v13. #17

Open
wants to merge 3 commits into
base: 8.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Use a base image with PHP 8.2.14, Alpine 3.18
FROM php:8.2.14-alpine3.18

ARG RUNNER_UID=1001
Expand All @@ -9,13 +10,15 @@ ENV COMPOSER_VERSION=2.6.6 \
COMPOSER_HASH_SHA256=72600201c73c7c4b218f1c0511b36d8537963e36aafa244757f52309f885b314 \
PHP_MEMORY_LIMIT=128M

# Install required packages and extensions
RUN apk add --no-cache --update git \
bash \
openssh-client \
mysql-client \
patch \
rsync \
libpng libpng-dev libzip-dev \
xvfb \
&& docker-php-ext-install gd pdo pdo_mysql zip \
&& apk del libpng-dev \
&& rm -rf /var/cache/apk/* \
Expand All @@ -24,6 +27,13 @@ RUN apk add --no-cache --update git \
&& chmod +x /usr/local/bin/composer \
&& echo 'memory_limit = ${PHP_MEMORY_LIMIT}' > /usr/local/etc/php/conf.d/memory-limit.ini

# Add user 'runner' with specified UID
RUN adduser -D -h /home/runner -u $RUNNER_UID runner

# Install Node.js and Cypress
USER root
RUN apk add --no-cache nodejs npm \
&& npm install -g cypress@13 \
&& chown -R runner:runner /home/runner

USER runner
Loading