diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-23 09:03:12 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-23 09:08:24 -0700 |
| commit | 8e09d75db41961ed72b0d12dcb5337049dda77ac (patch) | |
| tree | 081114f240374b1505132dc526b20d60c52864a7 /Dockerfile | |
| parent | ab13546fd608c85e483d5131f9af76c3b0851608 (diff) | |
| download | lizdotcoffee-8e09d75db41961ed72b0d12dcb5337049dda77ac.tar.gz lizdotcoffee-8e09d75db41961ed72b0d12dcb5337049dda77ac.zip | |
PHP
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -1,20 +1,14 @@ -#FROM node:22-alpine AS builder -# -#WORKDIR /app -# -#COPY package*.json ./ -#RUN npm install -# -#COPY . . -# -#RUN npm run build - FROM nginx:alpine AS lizdotcoffee -# COPY --from=builder /app/_site /usr/share/nginx/html +RUN apk add --no-cache php84 php84-fpm \ + && sed -i 's/^listen = .*/listen = 127.0.0.1:9000/' /etc/php84/php-fpm.d/www.conf \ + && sed -i 's/^user = .*/user = nginx/;s/^group = .*/group = nginx/' /etc/php84/php-fpm.d/www.conf + +RUN rm -f /usr/share/nginx/html/index.html /usr/share/nginx/html/50x.html + COPY html /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] +CMD ["sh", "-c", "php-fpm84 -D && nginx -g 'daemon off;'"] |
