Skip to content

Commit

Permalink
changed invoiceninja directory due to inherited VOLUME from base images
Browse files Browse the repository at this point in the history
  • Loading branch information
philkry committed Aug 31, 2016
1 parent 993cd8e commit ec8f0a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 57 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
@@ -1,25 +1,23 @@
FROM webhippie/php-caddy:latest
MAINTAINER Thomas Boerger <thomas@webhippie.de>

VOLUME ["/storage", "/srv/www/vendor"]
VOLUME ["/storage", "/opt/invoiceninja/vendor"]

ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/bin/s6-svscan", "/etc/s6"]
EXPOSE 8080
WORKDIR /srv/www

ENV INVOICENINJA_VERSION 2.6.10
ENV INVOICENINJA_TARBALL https://github.com/invoiceninja/invoiceninja/archive/v${INVOICENINJA_VERSION}.tar.gz
WORKDIR /opt/invoiceninja

RUN apk update && \
apk add \
git \
php-apcu \
php5-apcu \
sqlite&& \
rm -rf \
/var/cache/apk/*

ENV INVOICENINJA_VERSION 2.6.10
ENV INVOICENINJA_TARBALL https://github.com/invoiceninja/invoiceninja/archive/v${INVOICENINJA_VERSION}.tar.gz

RUN curl -sLo - \
${INVOICENINJA_TARBALL} | tar -xzf - --strip 1 -C /srv/www
${INVOICENINJA_TARBALL} | tar -xzf - --strip 1 -C /opt/invoiceninja

ADD rootfs /
2 changes: 1 addition & 1 deletion rootfs/etc/templates/caddyfile.tmpl
@@ -1,5 +1,5 @@
:8080
root /srv/www/public
root /opt/invoiceninja/public

log stdout
errors stderr
Expand Down
Empty file removed rootfs/srv/www/.env
Empty file.
47 changes: 0 additions & 47 deletions rootfs/srv/www/config/database.php

This file was deleted.

0 comments on commit ec8f0a0

Please sign in to comment.