Skip to content

Commit cbe4d47

Browse files
committed
Fix docker
1 parent 62a5108 commit cbe4d47

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Backend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update \
88

99
COPY Package.swift Package.resolved ./
1010
COPY Sources ./Sources
11+
COPY Tests ./Tests
1112

1213
RUN swift build -c release --product Server
1314

SPEC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ The implementation is considered complete when:
213213

214214
### 10.1 Container Build
215215
- The backend container image is built from `Backend/` using the checked-in `Backend/Dockerfile`.
216+
- The backend Docker build context includes `Tests/` alongside `Package.swift`, `Package.resolved`, and `Sources/` so SwiftPM can validate the package graph while building the `Server` executable.
216217
- The checked-in `Backend/railway.toml` codifies the Railway deploy settings that should live in source control, currently the Dockerfile builder and `/health` healthcheck.
217218
- The checked-in `Scripts/sync-github-actions-config.sh` script codifies how overlapping GitHub Actions repository variables and secrets can be synchronized from the local `.ENV` file.
218219
- The checked-in `Scripts/sync-railway-backend-variables.sh` script codifies how GitHub Actions synchronizes backend runtime variables into Railway before deployment, requiring `RAILWAY_PROJECT_ID` in the environment because `railway variable set` resolves project context from the environment rather than a `--project` flag.

0 commit comments

Comments
 (0)