Browse Source

Fixed Dockerfile

dockerize
Norman 2 months ago
parent
commit
8f2d1391f3
2 changed files with 13 additions and 12 deletions
  1. +0
    -12
      .docker/Dockerfile
  2. +13
    -0
      Dockerfile

+ 0
- 12
.docker/Dockerfile View File

@@ -1,12 +0,0 @@
FROM php:7.4-apache

# Set working directy at web server root
WORKDIR /var/www/html

# Manually installs Lockbox
COPY ../lockbox/* /
COPY ../config/env.example.php ./php/env.php
COPY ../config/key.public .

RUN mkdir /var/www/data
RUN chmod 666 /var/www/data

+ 13
- 0
Dockerfile View File

@@ -0,0 +1,13 @@
FROM php:7.4-apache

# Set working directy at web server root
WORKDIR /var/www/html

# Manually installs Lockbox
COPY ./lockbox/ .
COPY ./config/env.example.php ./php/env.php
COPY ./config/key.public .

# Create directory to save submissions and adjust permissions
RUN mkdir /var/www/data
RUN chown -R www-data:www-data /var/www/data

Loading…
Cancel
Save