Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add a Dockerfile #96

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

opdavies
Copy link

@opdavies opdavies commented Sep 9, 2021

  • Ensure that assets are re-compiled when the site is being run in dev/watch mode locally.

@opdavies opdavies force-pushed the opd-dockerfile branch 10 times, most recently from 3b627ee to d046da0 Compare September 13, 2021 21:47
Add a Dockerfile based on opdavies/sculpin and opdavies/sculpin-serve to
generate and serve the site.

It uses the multi-stage format and the target can be specified within
the build command:

    docker build . --target build -t sculpin-blog-skeleton-build

    docker build . --target serve -t sculpin-blog-skeleton-serve

The serve image can then be run including a port number to access the
site:

    docker run --rm -it -p 8000:8000 sculpin-blog-skeleton-serve
Add an additional node image that is responsible for generating the CSS
and assets during build, which can then be copied into the build and
service stages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant