Dockerfile
· 348 B · Docker
Raw
# Pull base image
FROM debian:latest
# Dockerfile Maintainer
MAINTAINER Jan Wagner "waja@cyconet.org"
# Install nginx and adjust nginx config to stay in foreground
RUN apt-get update && apt-get install --no-install-recommends -y nginx; \
echo "daemon off;" >> /etc/nginx/nginx.conf
# Expose HTTP
EXPOSE 80
# Start nginx
CMD ["/usr/sbin/nginx"]
| 1 | # Pull base image |
| 2 | FROM debian:latest |
| 3 | |
| 4 | # Dockerfile Maintainer |
| 5 | MAINTAINER Jan Wagner "waja@cyconet.org" |
| 6 | |
| 7 | # Install nginx and adjust nginx config to stay in foreground |
| 8 | RUN apt-get update && apt-get install --no-install-recommends -y nginx; \ |
| 9 | echo "daemon off;" >> /etc/nginx/nginx.conf |
| 10 | |
| 11 | # Expose HTTP |
| 12 | EXPOSE 80 |
| 13 | |
| 14 | # Start nginx |
| 15 | CMD ["/usr/sbin/nginx"] |