Skip to content

Clean up docker image and update dockerignore #1276

@lukasrad02

Description

@lukasrad02

The current docker build process is inefficient and cannot be cached properly: We add the full working directory to the build container and the .dockerignore file is not complete. This leads to full rebuilds (npm run deployment) if unrelated files are changed, for example the nginx config.

We should only COPY the necessary files into the container and check whether files aren't needed by any of the stages (for example the Dockerfile itself) to add them to the .dockerignore file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerdocker, nginx, docker-compose related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions