container runs for production site

This commit is contained in:
len0rd 2023-06-14 20:16:47 -04:00
parent d8fa64a9ae
commit 032ab59def
4 changed files with 7 additions and 5 deletions

View file

@ -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" ]

View file

@ -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`

View file

@ -1,4 +1,4 @@
#!/bin/bash
ablog build
ablog serve -p 8090
python -m http.server -d /website/_website/ 8090

View file

@ -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)