Type the following into the file. These statements produce a Dockerfile that describes the following:
The base stage includes environment setup which we expect to change very rarely, if at all.
Creates a new Docker image from the base image node:alpine. This base image has node.js on it and is optimized for small size.
Add curl to the base image to support Docker health checks.
Creates a directory on the image where the application files can be copied.
Neil Guan changed 5 years agoView mode Like Bookmark
原文:https://darkranger.no-ip.org/content/%E6%B7%BA%E9%A1%AF%E6%98%93%E6%87%82%E7%9A%84-selinux-%E6%94%BF%E7%AD%96%E5%AF%A6%E6%96%BD%E6%8C%87%E5%8D%97
SELinux(Security-Enhanced Linux)是一款 Linux 的安全性增強模組,起初由美國國家安全局(NSA)所開發,後來則整合進 Linux 核心,成為 Linux 核心的內建模組。不過並非所有的 Linux 發行版都預設啟用了 SELinux。Red Hat 是 SELinux 的最主要支持者,預設啟用 SELinux 的發行版多半都是來自於 Red Hat 或其衍生物,例如 Fedora、RHEL、CentOS 等等。
儘管 SELinux 相較於基本的 Unix-like 權限管理而言是更為嚴謹 ,但同時也顯得更為複雜,因此有不少 Linux 的使用者會傾向於直接停用它。另一方面,也有不少的使用者會讓它維持啟用,然後再根據阻擋的狀況執行特定的放行動作。然而無論是選擇啟用或停用,或許更大多數的使用者其實都對 SELinux 的工作原理一知半解,也未曾明白它真正的益處。
今年是 SELinux 首次釋出的十週年,一名 Red Hat 的員工 Daniel Walsh 在 opensource.com 發表了一篇文章:Your visual how-to guide for SELinux policy enforcement,該文章旨在以淺顯易懂的方式,說明 SELinux 的原理。由於內容並不涉及任何 SELinux 的指令與操作,而是純粹利用譬喻、漫畫和舉例來解釋 SELinux,因此對任何人來說應該都是很容易吸收的一篇文章。
以下是 DR 所翻的中文版,原版的圖文內容皆採 CC BY-SA 授權,而圖片的作者為 Máirín Duffy。
Neil Guan changed 5 years agoView mode Like 1 Bookmark