[BUGFIX] fix jirafeau docker image

- exposed port
- fix lighttpd user
- setup www-data group
This commit is contained in:
Jerome Jutteau 2020-12-02 21:30:56 +01:00
parent a916c325ea
commit 65b5afd798
2 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,10 @@
FROM php:7.3-fpm-alpine
MAINTAINER "Jérôme Jutteau <jerome@jutteau.fr>"
ARG USER_UID=2009
# lighttpd user
ARG USER_UID=100
# www-data group
ARG GROUP_UID=82
# install base
RUN apk update && \
@ -15,7 +19,7 @@ COPY .git .git
RUN apk add git && \
git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md && \
apk del git && \
chown -R $USER_UID /www && \
chown -R $USER_UID.$GROUP_UID /www && \
chmod o=,ug=rwX -R /www && \
chmod +x docker/cleanup
@ -35,4 +39,4 @@ RUN rm -rf /var/cache/apk/*
CMD /www/docker/cleanup & php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf
EXPOSE 80
EXPOSE 80

View File

@ -2,7 +2,7 @@ var.basedir = "/www"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
server.port = 8080
server.port = 80
server.modules = (
"mod_access",
"mod_usertrack",
@ -13,8 +13,8 @@ server.modules = (
include "mime-types.conf"
include "mod_fastcgi_fpm.conf"
#server.username = "lighttpd"
#server.groupname = "lighttpd"
server.username = "lighttpd"
server.groupname = "www-data"
server.pid-file = "/run/lighttpd.pid"
server.errorlog = var.logdir + "/error.log"