mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-16 20:38:29 +01:00
[TASK] simplify Dockerfile
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
parent
b8d29136e6
commit
9a72b7f56f
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@ -0,0 +1,6 @@
|
||||
CHANGELOG.md
|
||||
CONTRIBUTING.md
|
||||
Dockerfile
|
||||
README.md
|
||||
composer.json
|
||||
.*
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ composer.phar
|
||||
.*
|
||||
!.gitlab-ci.yml
|
||||
!.gitignore
|
||||
!.dockerignore
|
14
Dockerfile
14
Dockerfile
@ -7,16 +7,17 @@ RUN apk update && \
|
||||
echo "UTC" > /etc/timezone
|
||||
|
||||
# install lighttpd
|
||||
RUN apk add lighttpd git
|
||||
RUN apk add lighttpd
|
||||
|
||||
# install jirafeau
|
||||
RUN mkdir /www
|
||||
WORKDIR /www
|
||||
COPY .git .git
|
||||
RUN git reset --hard && rm -rf docker install.php .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
|
||||
RUN touch /www/lib/config.local.php
|
||||
RUN chown -R $(id -u lighttpd).$(id -g www-data) /www
|
||||
RUN chmod o=,ug=rwX -R /www
|
||||
# Will ignore some files through .dockerignore
|
||||
COPY . .
|
||||
RUN rm -rf docker && \
|
||||
touch /www/lib/config.local.php && \
|
||||
chown -R $(id -u lighttpd).$(id -g www-data) /www && \
|
||||
chmod o=,ug=rwX -R /www
|
||||
|
||||
COPY docker/cleanup.sh /cleanup.sh
|
||||
COPY docker/run.sh /run.sh
|
||||
@ -28,7 +29,6 @@ COPY docker/php.ini /usr/local/etc/php/php.ini
|
||||
COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
|
||||
|
||||
# cleanup
|
||||
RUN apk del git
|
||||
RUN rm -rf /var/cache/apk/*
|
||||
|
||||
CMD /run.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user