Sign inSign up

bmcbm/ft15test

By bmcbm

Updated almost 11 years ago

Small testing docker for ft15 election

Image
0

1.3K

bmcbm/ft15test repository overview

Nginx Dockerfile

https://github.com/dockerfile/nginx

Pull base image.

#FROM dockerfile/ubuntu FROM ubuntu:14.04

Install Nginx.

RUN
apt-get install -y software-properties-common &&
add-apt-repository -y ppa:nginx/stable &&
apt-get update &&
apt-get install -y nginx &&
rm -rf /var/lib/apt/lists/* &&
echo "\ndaemon off;" >> /etc/nginx/nginx.conf &&
chown -R www-data:www-data /var/lib/nginx

Define mountable directories.

VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]

Define working directory.

WORKDIR /etc/nginx

Define default command.

CMD ["nginx"]

Expose ports.

EXPOSE 80 EXPOSE 443

Tag summary

Content type

Image

Digest

sha256:90e07991d

Size

90.2 MB

Last updated

almost 11 years ago

docker pull bmcbm/ft15test