Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
[BUILD] docker file test
Browse files Browse the repository at this point in the history
  • Loading branch information
archan0621 committed Feb 5, 2024
1 parent 4a679df commit 55c0fa5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:20.04

ARG APIURL
ENV URL ${APIURL}

ENV DEBIAN_FRONTEND=noninteractive

Expand All @@ -21,7 +22,12 @@ RUN sed -i 's/^\(session\.auto_start\s*=\s*\)0/\11/' /etc/php/7.4/apache2/php.in
# Modify Apache configuration to allow .htaccess overrides
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride all/' /etc/apache2/apache2.conf

RUN sed -i 's/$my_api = "";/\$my_api = "%APIURL%";/' /var/www/html/config/config.php
RUN sed -i 's/$my_api = "";/\$my_api = "$URL";/' /var/www/html/config/config.php

RUN echo "URL TEST %APIURL%"
RUN echo "URL TEST $APIURL"
RUN echo "URL TEST ${APIURL}"
RUN echo "URL TEST $URL"

ENTRYPOINT ["apachectl", "-D", "FOREGROUND"]
EXPOSE 80/tcp

0 comments on commit 55c0fa5

Please sign in to comment.