docker-nexus/Dockerfile

23 lines
570 B
Docker
Raw Normal View History

2015-02-17 21:37:15 -08:00
FROM basessh
MAINTAINER Dave P
2015-03-21 11:29:34 -07:00
# Create nexus user
2015-02-17 21:37:15 -08:00
RUN useradd --create-home nexus ; \
echo "nexus:nexus" | chpasswd
2015-03-21 11:29:34 -07:00
# Install nginx
2015-05-23 15:02:35 -07:00
RUN apt-get install -y nginx-light fcgiwrap
2015-03-21 11:29:34 -07:00
# Configure nginx
2015-05-23 15:02:35 -07:00
RUN echo "daemon off;" >> /etc/nginx/nginx.conf ; cp /usr/share/doc/fcgiwrap/examples/nginx.conf /etc/nginx/fcgiwrap.conf
2015-03-21 11:29:34 -07:00
COPY nginx.conf /etc/supervisor/conf.d/nginx.conf
2015-05-23 15:02:35 -07:00
COPY fcgiwrap.conf /etc/supervisor/conf.d/fcgiwrap.conf
2015-03-21 11:29:34 -07:00
COPY default /etc/nginx/sites-available/default
2015-05-23 15:02:35 -07:00
COPY clear-sockets /start.d/clear-sockets
RUN chmod +x /start.d/clear-sockets
2015-03-21 11:29:34 -07:00
EXPOSE 80
2015-02-17 21:37:15 -08:00