Skip to content

Publishing a new post shouldn't require application rebuild #87

Open

Description

@ForNeVeR

Current Dockerfile ensures that the application publish result relies on the posts directory:

fornever.me/Dockerfile

Lines 22 to 26 in 833af78

COPY ./ForneverMind ./ForneverMind/
COPY ./ForneverMind.Frontend ./ForneverMind.Frontend/
COPY ./ForneverMind.Tests ./ForneverMind.Tests/
COPY --from=talks-env /talks/ForneverMind/wwwroot/talks/ ./ForneverMind/wwwroot/talks/
RUN dotnet publish ./ForneverMind -c Release -o out

This is alright, but could be problematic when publishing the application on server: any change in posts will trigger a new publish.

I think it could be tuned so content-related changes (wwwroot or posts) won't trigger a backend and "frontend" code rebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions