mirror of
https://github.com/len0rd/personal-website.git
synced 2025-03-01 03:51:57 -05:00
container runs for production site
This commit is contained in:
parent
d8fa64a9ae
commit
032ab59def
|
@ -27,4 +27,4 @@ FROM dev as prod
|
||||||
COPY . /website
|
COPY . /website
|
||||||
WORKDIR /website
|
WORKDIR /website
|
||||||
EXPOSE 8090
|
EXPOSE 8090
|
||||||
CMD [ "./container_serve.sh" ]
|
ENTRYPOINT [ "/bin/bash", "/website/container_serve.sh" ]
|
||||||
|
|
|
@ -21,6 +21,10 @@ Its a website! Node/npm
|
||||||
1. From this directory install dependencies with `npm install`
|
1. From this directory install dependencies with `npm install`
|
||||||
2. Run the server with `npm start`
|
2. Run the server with `npm start`
|
||||||
|
|
||||||
## Build the docker image
|
## Build the production docker image
|
||||||
|
|
||||||
`docker build -t leo_website:latest .`
|
`docker build -t leo_website:latest .`
|
||||||
|
|
||||||
|
## Run the production container
|
||||||
|
|
||||||
|
`docker run --rm -td -p 8888:8090 leo_website:prod`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ablog build
|
ablog build
|
||||||
ablog serve -p 8090
|
python -m http.server -d /website/_website/ 8090
|
||||||
|
|
|
@ -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.
|
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.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue