From 9b2268548476f2eb58691d7d9fdc308e2055cd0e Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 30 Mar 2023 00:15:36 -0600 Subject: [PATCH] Add web server to host container Former-commit-id: d01fb777d4ca03f24ba607dac6156f08d69f53e5 --- .../container-build/cerc-laconic-console-host/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/data/container-build/cerc-laconic-console-host/Dockerfile b/app/data/container-build/cerc-laconic-console-host/Dockerfile index 5a62cc7d..7f86c69b 100644 --- a/app/data/container-build/cerc-laconic-console-host/Dockerfile +++ b/app/data/container-build/cerc-laconic-console-host/Dockerfile @@ -44,11 +44,14 @@ RUN npm config set @cerc-io:registry ${CERC_NPM_URL} \ && npm config set @lirewine:registry ${CERC_NPM_URL} \ && npm config set -- ${CERC_NPM_URL}:_authToken ${CERC_NPM_AUTH_TOKEN} -# TODO: the image at this point could be made a base image for several different CLI images -# that install different Node-based CLI commands +# Install simple web server for now (use nginx perhaps later) +RUN yarn global add http-server -# Globally install the cli package +# Globally install the payload web app package RUN yarn global add @cerc-io/console-app +# Expose port for http +EXPOSE 80 + # Default command sleeps forever so docker doesn't kill it CMD ["sh", "-c", "while :; do sleep 600; done"]