From 032ab59def3ed6dafdbb0eb0f58e25bc8807b1dd Mon Sep 17 00:00:00 2001 From: len0rd Date: Wed, 14 Jun 2023 20:16:47 -0400 Subject: [PATCH] container runs for production site --- Dockerfile | 2 +- README.md | 6 +++++- container_serve.sh | 2 +- posts/ls1synth.rst | 2 -- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f134eed..83c8a15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ FROM dev as prod COPY . /website WORKDIR /website EXPOSE 8090 -CMD [ "./container_serve.sh" ] +ENTRYPOINT [ "/bin/bash", "/website/container_serve.sh" ] diff --git a/README.md b/README.md index 46a329f..89b322f 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ Its a website! Node/npm 1. From this directory install dependencies with `npm install` 2. Run the server with `npm start` -## Build the docker image +## Build the production docker image `docker build -t leo_website:latest .` + +## Run the production container + +`docker run --rm -td -p 8888:8090 leo_website:prod` diff --git a/container_serve.sh b/container_serve.sh index db02220..84674bb 100755 --- a/container_serve.sh +++ b/container_serve.sh @@ -1,4 +1,4 @@ #!/bin/bash ablog build -ablog serve -p 8090 +python -m http.server -d /website/_website/ 8090 diff --git a/posts/ls1synth.rst b/posts/ls1synth.rst index 34de398..08c4293 100644 --- a/posts/ls1synth.rst +++ b/posts/ls1synth.rst @@ -37,5 +37,3 @@ With the panel designed, I simply needed to export the sketch face to a format t With the metal sheet cut, I was ready to cut out the case with the water jet. My university charges for how much time you use a product, and since the case is not too large, this only cost me around $20. Putting the case portion of the project at ~$30 total! This was my first time using a water jet, so it was a very big deal for me. Computer Engineering is fun and all, but you don't get enough chances to play with big toys like other disciplines do. -![Metal sheet cut and ready for the jet](/img/writeup/ls1synth/case-waterjet.mp4) -