Skip to content

Commit

Permalink
Dockerfile refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed Mar 24, 2024
1 parent a93672f commit 8735d7d
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions Documentation/Build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ FROM php:8.1-apache
RUN mkdir /DATA && \
mkdir /DATA/HRConvert2

# Set permissions for required directories.
RUN chmod -R 0755 /DATA && \
chown -R www-data:www-data /DATA && \
chmod -R 0755 /var/www/html && \
chown -R www-data /var/www/html && \
chgrp -R www-data /var/www/html

# Set the working directory in the container.
WORKDIR /var/www/html/HRProprietary

Expand Down Expand Up @@ -88,15 +81,11 @@ RUN cp HRConvert2/Documentation/Build/php.ini /usr/local/etc/php/php.ini
RUN cp HRConvert2/index.html /var/www/html/index.html
RUN cp HRConvert2/index.html /var/www/html/HRProprietary/index.html

#RUN mkdir /var/www/html/HRProprietary/HRConvert2/Logs && \
# mkdir /home/converter && \
# chmod -R 0755 /home/converter && \
# chown -R www-data /home/converter && \
# chgrp -R www-data /home/converter

RUN chmod -R 0755 /var/www/html && \
chown -R www-data /var/www/html && \
chgrp -R www-data /var/www/html
# Set permissions for required directories.
RUN chmod -R 0755 /DATA && \
chown -R www-data:www-data /DATA && \
chmod -R 0755 /var/www/html && \
chown -R www-data:www-data /var/www/html

# Expose the ports Apache listens on to the host.
# Set these to whatever ports suits your needs.
Expand Down

0 comments on commit 8735d7d

Please sign in to comment.