Skip to content

Commit

Permalink
Test: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
curious-mike-dvc committed Jul 20, 2024
1 parent a042dd8 commit 5553fb3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM node:19.9.0-alpine AS node

# Base image with PHP-FPM
#FROM php:8.1.22-fpm-alpine3.16 AS base
FROM php:8.1.28-fpm-alpine3.18 AS base
Expand Down Expand Up @@ -137,6 +139,19 @@ RUN addgroup www-data tty
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Install Node
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/share /usr/local/share
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin

# Puppeteer npm configuration.
# It uses apk installed Chromium "/usr/bin/chromium-browser", tell Puppeteer to not install local Chromium which takes time.
# Compatible version = Puppeteer 10.0.0. Install in project with "npm install puppeteer@10.0.0".
# More info here : https://stackoverflow.com/questions/69417926/docker-error-eacces-permission-denied-mkdir
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

# Setup Working Dir
WORKDIR /var/www

Expand Down

0 comments on commit 5553fb3

Please sign in to comment.