This commit is contained in:
parent
da342bba2c
commit
34553bd9be
1 changed files with 2 additions and 1 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
FROM php:8.2-cli
|
FROM php:8.2-cli
|
||||||
LABEL fnkit.fn="true"
|
LABEL fnkit.fn="true"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY composer.json composer.lock ./
|
COPY composer.json ./
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
RUN composer install --no-dev
|
RUN composer install --no-dev
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV FUNCTION_TARGET=helloHttp
|
ENV FUNCTION_TARGET=helloHttp
|
||||||
|
EXPOSE 8080
|
||||||
CMD ["php", "-S", "0.0.0.0:8080", "vendor/google/cloud-functions-framework/router.php"]
|
CMD ["php", "-S", "0.0.0.0:8080", "vendor/google/cloud-functions-framework/router.php"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue