Skip to content

Instantly share code, notes, and snippets.

@remie
Created June 30, 2018 12:11
Show Gist options
  • Save remie/c6c269bf689d0921b44653bccf7860b4 to your computer and use it in GitHub Desktop.
Save remie/c6c269bf689d0921b44653bccf7860b4 to your computer and use it in GitHub Desktop.
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