Switch to openresty image (nginx with some lua magic)
This commit is contained in:
parent
ea7e7e3292
commit
337bd5ffc9
25
dockerfile
25
dockerfile
@ -15,11 +15,20 @@ ADD . /usr/src/app/
|
|||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn run build:web
|
RUN yarn run build:web
|
||||||
|
|
||||||
# # Stage 2: Bundle the built application into a Docker container
|
# Stage 2: Bundle the built application into a Docker container
|
||||||
# # which runs Nginx using Alpine Linux
|
# which runs openresty (nginx) using Alpine Linux
|
||||||
FROM nginx:1.15.5-alpine
|
FROM openresty/openresty:alpine-fat
|
||||||
RUN rm -rf /etc/nginx/conf.d
|
|
||||||
COPY conf /etc/nginx
|
RUN mkdir /var/log/nginx
|
||||||
COPY --from=builder /usr/src/app/build /usr/share/nginx/html
|
RUN apk add --no-cache openssl
|
||||||
EXPOSE 80
|
RUN apk add --no-cache openssl-dev
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
RUN apk add --no-cache git
|
||||||
|
RUN apk add --no-cache gcc
|
||||||
|
# RUN luarocks install lua-resty-openidc
|
||||||
|
|
||||||
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user