Created
June 30, 2018 12:11
-
-
Save remie/c6c269bf689d0921b44653bccf7860b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM httpd:alpine | |
## Installing NodeJS | |
RUN apk add --update nodejs | |
## Copy Apache redirect rules | |
COPY ./conf.d /usr/local/apache2/conf.d | |
COPY ./httpd.conf /usr/local/apache2/conf.d/redirect.conf | |
RUN echo "Include /usr/local/apache2/conf.d/redirect.conf" >> /usr/local/apache2/conf/httpd.conf; | |
## Copy & run tests | |
WORKDIR /opt/redirect | |
COPY ./package.json package.json | |
COPY ./package-lock.json package-lock.json | |
COPY ./test test | |
COPY ./test.sh test.sh | |
RUN /opt/redirect/test.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment