website/Dockerfile

18 lines
305 B
Docker
Raw Normal View History

FROM ruby:3.2.2-alpine AS builder
Add Dockerized workflow Squashed commit of the following: commit 7c043fea5e7fe2aa431af325f0148d1005c1154e Author: shane <shane@distrust.co> Date: Tue Jan 24 10:06:23 2023 -0600 Change capitalization of makefile to Makefile commit 47c85805d9c28b98063fa87dbff746f5e2fad703 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:55:23 2023 -0600 Re-remove shell scripts to be run by Makefile `$PWD`, it turns out, does not resolve in Makefiles. Perhaps this is because it is not strictly running `bash` from a `source`d shell environment. When instead computing the value with `$(shell pwd)`, the volume mounts are successful and the operations perform as-expected. commit dc5952bef488010d4dd9e7b44c688a4033b5f0b2 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:42:06 2023 -0600 Re-add shell scripts to run from Makefile If the Makefile executes the same commands, they do not effectively do the right thing. The files for the _site directory do not get created and the server only resolves to an empty site directory. Nothing was changed about the commands. This just seems to be something about `make`'s permissions. commit 2c98664076c071082d3a1807b40a322a8ecab174 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:00:39 2023 -0600 Remove redundancies from Makefile process - Move contents of build.sh to `build:` target - Move contents of serve.sh to `serve:` target commit 09d9964453425245025560e46a5b25e1c8d3c746 Author: shane <shane@distrust.co> Date: Tue Jan 24 08:59:15 2023 -0600 Re-add Gemfile.lock - This one was produced with the most recent Gemfile version commit 13768779681292b48a3a23a65824bca466be1611 Author: shane <shane@distrust.co> Date: Mon Jan 23 21:22:42 2023 -0600 Add Dockerized workflow
2023-01-24 20:51:59 +00:00
RUN apk update && apk add g++ make
RUN mkdir -p /home
COPY Gemfile /home
COPY Gemfile.lock /home
WORKDIR /home
RUN bundle install
FROM ruby:3.2.2-alpine
COPY --from=builder /usr/local/bundle /usr/local/bundle
RUN mkdir -p /home
WORKDIR /home
Add Dockerized workflow Squashed commit of the following: commit 7c043fea5e7fe2aa431af325f0148d1005c1154e Author: shane <shane@distrust.co> Date: Tue Jan 24 10:06:23 2023 -0600 Change capitalization of makefile to Makefile commit 47c85805d9c28b98063fa87dbff746f5e2fad703 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:55:23 2023 -0600 Re-remove shell scripts to be run by Makefile `$PWD`, it turns out, does not resolve in Makefiles. Perhaps this is because it is not strictly running `bash` from a `source`d shell environment. When instead computing the value with `$(shell pwd)`, the volume mounts are successful and the operations perform as-expected. commit dc5952bef488010d4dd9e7b44c688a4033b5f0b2 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:42:06 2023 -0600 Re-add shell scripts to run from Makefile If the Makefile executes the same commands, they do not effectively do the right thing. The files for the _site directory do not get created and the server only resolves to an empty site directory. Nothing was changed about the commands. This just seems to be something about `make`'s permissions. commit 2c98664076c071082d3a1807b40a322a8ecab174 Author: shane <shane@distrust.co> Date: Tue Jan 24 09:00:39 2023 -0600 Remove redundancies from Makefile process - Move contents of build.sh to `build:` target - Move contents of serve.sh to `serve:` target commit 09d9964453425245025560e46a5b25e1c8d3c746 Author: shane <shane@distrust.co> Date: Tue Jan 24 08:59:15 2023 -0600 Re-add Gemfile.lock - This one was produced with the most recent Gemfile version commit 13768779681292b48a3a23a65824bca466be1611 Author: shane <shane@distrust.co> Date: Mon Jan 23 21:22:42 2023 -0600 Add Dockerized workflow
2023-01-24 20:51:59 +00:00
CMD ["jekyll", "serve"]