Public Repository

Last pushed: 2 years ago
Short Description
Lua-nginx on Raspberry Pi Debian (Raspbian)
Full Description

Dockerfile

FROM resin/rpi-raspbian
MAINTAINER Sam Liu <ontouchstart@gmail.com>

RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y lua-nginx-redis lua-nginx-websocket lua-nginx-memcached

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

# Define default command.
ADD start.sh /start.sh
CMD ["/start.sh"]

# Expose ports.
EXPOSE 80
EXPOSE 443

start.sh

#!/bin/sh
/etc/init.d/nginx start
bash

Example

sudo docker run -d -p 8888:80 -v $(pwd):/var/www/html -t ontouchstart/rpi-lua-nginx
Docker Pull Command
Owner
ontouchstart

Comments (0)