|
|
|
@ -8,8 +8,7 @@ WORKDIR /root |
|
|
|
|
|
|
|
# Create nginx directories in standard places |
|
|
|
RUN mkdir /run/nginx |
|
|
|
RUN mkdir /etc/nginx/pki |
|
|
|
RUN mkdir /etc/nginx/pki/private |
|
|
|
RUN mkdir -p /etc/nginx/pki/private |
|
|
|
|
|
|
|
# Setup ftp |
|
|
|
ENV VSFTPD_CONF=/etc/vsftpd.conf |
|
|
|
@ -24,11 +23,11 @@ RUN chown -R ftpuser.www-data /var/www |
|
|
|
RUN chmod g+w -R /var/www |
|
|
|
|
|
|
|
# BATS (Bash Automated Testings) |
|
|
|
RUN git clone https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1 |
|
|
|
RUN git clone https://github.com/bats-core/bats-support /bats-support |
|
|
|
RUN git clone https://github.com/bats-core/bats-assert /bats-assert |
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1 |
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-support /bats-support |
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert |
|
|
|
RUN /bats-core/install.sh /usr/local |
|
|
|
|
|
|
|
# Use supervisord to run nginx in the background |
|
|
|
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf |
|
|
|
CMD tail -f /dev/null |
|
|
|
CMD [ "tail", "-f", "/dev/null" ] |