fn-php/Dockerfile
fnkit 40c4ac98e5
All checks were successful
/ deploy (push) Successful in 23s
fix: install git unzip for composer
2026-02-17 17:17:45 +00:00

11 lines
434 B
Docker

FROM php:8.2-cli
LABEL fnkit.fn="true"
RUN apt-get update && apt-get install -y git unzip zip && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY composer.json ./
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install --no-dev
COPY . .
ENV FUNCTION_TARGET=helloHttp
EXPOSE 8080
CMD ["php", "-S", "0.0.0.0:8080", "vendor/google/cloud-functions-framework/router.php"]