apsis-book/Dockerfile.dockerignore

39 lines
1.6 KiB
Docker

# What the Docker build does not send to the daemon.
#
# The build context is the workspace directory above this one, so the patterns
# here are relative to that directory rather than to this file. This file is
# named `Dockerfile.dockerignore`, which is the name the builder looks for when
# the ignore file is not in the context root; it is kept beside the Dockerfile
# so that the two stay together.
#
# Docker 构建不发给守护进程的内容。
#
# 构建上下文是本目录的上一级工作区目录,因此这里的模式相对于那个目录,而不是
# 相对于本文件。本文件名为 `Dockerfile.dockerignore`,当忽略文件不在上下文根时
# 构建器就找这个名字;它与 Dockerfile 放在一起,使两者不致分离。
# Build output. Both are produced inside the image, and a copy from the host
# would be used in place of the newly built one, which is the sort of mistake
# that produces an image of an older revision.
#
# 构建产物。两者都在镜像内产生,而从宿主机复制来的副本会被用来代替新构建的那个
# ——这正是会产出旧版本镜像的那类失误。
**/target
apsis-book/frontend/dist
# Dependencies, which the frontend stage installs from the lock file.
#
# 依赖,由前端阶段依据 lock 文件安装。
**/node_modules
# Version control, which the build does not read.
#
# 版本控制,构建不会读取。
**/.git
# Working notes dropped beside the project, such as screenshots of a page
# under inspection.
#
# 丢在项目旁边的临时笔记,例如正在检查的页面截图。
apsis-book/tmp