Commit dd591f14 authored by Zhao ZHANG's avatar Zhao ZHANG
Browse files

Adding simple docker container support

parent 219f0ce8
### Configuration Docker Environement
# Locally mapped port, accessed via http://localhost:port
HTTP_PORT=8043
# Locally mapped port, accessed via sftp: sftp -P2200 root@127.0.0.1
SFTP_PORT=2200
# Point to your temporary directory
WORKSPACE_TEMP_DIR=./temp/
\ No newline at end of file
version: '2'
services:
### Docker Theme Container #######################################
theme:
build:
context: ./docker
dockerfile: Dockerfile
volumes:
- ${WORKSPACE_TEMP_DIR}:/tmp/
ports:
- "${HTTP_PORT}:80"
- "${SFTP_PORT}:22"
### Volumes Setup ###########################################
volumes:
theme:
driver: "local"
\ No newline at end of file
FROM openwrtorg/rootfs:x86-64
MAINTAINER Zhao ZHANG <zo.zhang@gmail.com>
USER root
RUN mkdir /var/lock && \
opkg update && \
opkg install uhttpd luci-base luci-mod-admin-full luci-theme-bootstrap luci-i18n-base-en luci-i18n-firewall-en luci-i18n-base-fr luci-i18n-firewall-fr openssh-sftp-server && \
uci set luci.ccache.enable=0 && \
uci commit luci
RUN mkdir -p /deployment && \
ln -s /usr/lib/lua/luci /deployment/luci-lua && \
ln -s /usr/lib/lua/luci/view/ /deployment/luci-view && \
ln -s /usr/share/rpcd/acl.d/ /deployment/acl.d && \
ln -s /usr/share/luci/menu.d/ /deployment/menu.d && \
ln -s /www/luci-static/resources/ /deployment/resources-js
EXPOSE 80
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment