Revised dockerfile notes

This commit is contained in:
dannyrb 2019-05-06 14:11:40 -04:00
parent f8f4584f4e
commit 8e939eb491
3 changed files with 21 additions and 7 deletions

View File

@ -64,6 +64,8 @@ Interact w/ running container:
`docker exec -it CONTAINER_NAME bash`
To delete containers not in use: `docker prune`
## Resources
- http://www.staticshin.com/programming/definitely-an-open-resty-guide/#access_by_lua

View File

@ -12,7 +12,6 @@ services:
# Project root
context: ./../../
dockerfile: ./docker/OpenResty-Orthanc-Keycloak/dockerfile
# image: authproxy:latest
#
#
image: webapp:latest

View File

@ -1,10 +1,24 @@
# Build docker container using
# `docker build -t authproxy .`
# docker-compose
# --------------
# This dockerfile is used by the `docker-compose.yml` adjacent file. When
# running `docker-compose build`, this dockerfile helps build the "webapp" image.
# All paths are relative to the `context`, which is the project root directory.
#
# This will create a container named `authproxy`
# that can be run with an Nginx configuration
# docker build
# --------------
# If you would like to use this dockerfile to build and tag an image, make sure
# you set the context to the project's root directory:
# https://docs.docker.com/engine/reference/commandline/build/
#
# OpenResty is functionally identical to Nginx with the addition of Lua out of
#
# SUMMARY
# --------------
# This dockerfile has two stages:
#
# 1. Building the React application for production
# 2. Setting up our Nginx (OpenResty*) image w/ step one's output
#
# * OpenResty is functionally identical to Nginx with the addition of Lua out of
# the box.
@ -38,7 +52,6 @@ RUN apk add --no-cache gcc
RUN luarocks install lua-resty-jwt
RUN luarocks install lua-resty-session
RUN luarocks install lua-resty-jwt
RUN luarocks install lua-resty-http
RUN luarocks install lua-resty-openidc
RUN luarocks install luacrypto