Added PUID and PGID env vars to dockerfile
Added chown to dockerfile
This commit is contained in:
parent
4a512a251a
commit
d0b49b8932
@ -1,4 +1,6 @@
|
|||||||
FROM httpd
|
FROM httpd
|
||||||
|
ENV PUID=${PUID:-1000}
|
||||||
|
ENV PGID=${PGID:-1000}
|
||||||
COPY init.sh /init.sh
|
COPY init.sh /init.sh
|
||||||
COPY healthcheck.sh /healthcheck.sh
|
COPY healthcheck.sh /healthcheck.sh
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
@ -8,6 +10,7 @@ chmod +x /init.sh && \
|
|||||||
chmod +x /healthcheck.sh
|
chmod +x /healthcheck.sh
|
||||||
WORKDIR /usr/local/apache2/htdocs/
|
WORKDIR /usr/local/apache2/htdocs/
|
||||||
RUN mkdir download
|
RUN mkdir download
|
||||||
|
RUN chown -R $PUID:$PGID /usr/local/apache2/htdocs
|
||||||
ENV IMG false
|
ENV IMG false
|
||||||
HEALTHCHECK --start-period=1m CMD /healthcheck.sh
|
HEALTHCHECK --start-period=1m CMD /healthcheck.sh
|
||||||
CMD ["/bin/bash","/init.sh"]
|
CMD ["/bin/bash","/init.sh"]
|
||||||
Loading…
Reference in New Issue
Block a user