mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-25 07:19:31 -05:00
Dockerfile: Define data volume and entryscript
The entryscript is needed to set correct permissions on the data directory.
This commit is contained in:
parent
43d48ae2df
commit
8c19e869b7
@ -13,4 +13,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# We enable Apache's mod_rewrite
|
# We enable Apache's mod_rewrite
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
|
|
||||||
|
|
||||||
|
# Copy app content
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
# Copy start script
|
||||||
|
COPY docker/entrypoint.sh /
|
||||||
|
VOLUME /var/www/html/data
|
||||||
|
|
||||||
|
CMD /entrypoint.sh
|
||||||
|
5
docker/entrypoint.sh
Executable file
5
docker/entrypoint.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
chown -R www-data /var/www/html/data
|
||||||
|
rm -r /var/www/html/docker
|
||||||
|
apache2-foreground
|
Loading…
Reference in New Issue
Block a user