# FHS guidelines

Published articles for FHS guidelines.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Best practices for writing Dockerfiles - Follow "Filesystem Hierarchy Standard"

DevFeed: [Best practices for writing Dockerfiles - Follow "Filesystem Hierarchy Standard"](<https://devfeed.tech/articles/best-practices-for-writing-dockerfiles-follow-filesystem-hierarchy-standard-27701.md>)

Original publisher: [Read original article](<https://gagor.pro/2024/03/best-practices-for-writing-dockerfiles-follow-filesystem-hierarchy-standard/>)

Author: Tom

Published: 2024-03-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [Docker Image](<https://devfeed.tech/topics/docker-image.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [maintenance](<https://devfeed.tech/topics/maintenance.md>)

Tags: [best-practices](<https://devfeed.tech/tags/best-practices.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-container-maintainability](<https://devfeed.tech/tags/docker-container-maintainability.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [docker-image-organization](<https://devfeed.tech/tags/docker-image-organization.md>), [dockerfile-best-practices](<https://devfeed.tech/tags/dockerfile-best-practices.md>), [dockerfiles](<https://devfeed.tech/tags/dockerfiles.md>), [fhs-guidelines](<https://devfeed.tech/tags/fhs-guidelines.md>), [filesystem-hierarchy-standard](<https://devfeed.tech/tags/filesystem-hierarchy-standard.md>), [linux](<https://devfeed.tech/tags/linux.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [volumes](<https://devfeed.tech/tags/volumes.md>)

### AI overview

This tutorial explains how to organize Docker images according to the Filesystem Hierarchy Standard. It covers locations for scripts, binaries, Java artifacts, web content, and temporary or writable files, recommending volumes for files that containers must write.

### Source excerpt

Learn best practices for writing Dockerfiles by following the Filesystem Hierarchy Standard (FHS) to enhance organization and maintainability of your Docker images.