-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM php:8.2-cli
RUN apt-get update && apt-get install -y \
libzip-dev \
zip \
wget \
&& docker-php-ext-install zip
# Install google chrome
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm ./google-chrome-stable_current_amd64.deb
# Install dependencies for headless chromedriver
RUN apt-get install -y \
libnss3-dev \
libglib2.0-0 \
libx11-xcb1
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
VOLUME /app
WORKDIR /app
# Prepare development environment
COPY ./docker/startup.sh /docker/startup.sh
ENTRYPOINT /docker/startup.sh