railpack

Configure and troubleshoot Railpack builds, with emphasis on RAILPACK_* environment variables, railpack.json overlays, build-plan inspection, local CLI installation and usage, and local BuildKit containers. Use for Railpack provider configuration, custom install/build/start commands, Mise or Apt packages, build or runtime variables and secrets, generated-plan debugging, BUILDKIT_HOST errors, or running Railpack from a release or source checkout.

Install
npx skills add 'https://github.com/railwayapp/railpack/tree/main/.'
Incomplete bundle · no download
main · 21a254fScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

core/plan/dockerignore.go

core/plan/dockerignore.goBrowse 1970 files
View on GitHub
← Back to SKILL.md
package plan import (	"strings" 	"github.com/railwayapp/railpack/core/app" 	// this is the native dockerignore parser used by buildkit	// https://github.com/moby/buildkit/blob/master/frontend/dockerfile/dockerignore/dockerignore_deprecated.go	"github.com/moby/patternmatcher/ignorefile") // parses a .dockerignore file from the app directory. assumes the file exists.func checkAndParseDockerignore(app *app.App) ([]string, error) {	content, err := app.ReadFile(".dockerignore")	if err != nil {		return nil, err	} 	reader := strings.NewReader(content)	patterns, err := ignorefile.ReadAll(reader)	if err != nil {		return nil, err	} 	return patterns, nil} type DockerignoreContext struct {	Excludes []string	HasFile  bool} func NewDockerignoreContext(app *app.App) (*DockerignoreContext, error) {	if !app.HasFile(".dockerignore") {		return &DockerignoreContext{}, nil	} 	excludes, err := checkAndParseDockerignore(app)	if err != nil {		return nil, err	} 	return &DockerignoreContext{		Excludes: excludes,		HasFile:  true,	}, nil}