fix: update Dockerfile and turbo.json to include APP_VERSION and GIT_COMMIT_SHA as environment variables

- Added APP_VERSION and GIT_COMMIT_SHA arguments to Dockerfile for versioning and commit tracking.
- Updated turbo.json to pass APP_VERSION and GIT_COMMIT_SHA as environment variables for build tasks.
This commit is contained in:
2026-03-24 11:08:30 -04:00
parent 2cd1964ca8
commit 1bf12d3884
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -36,10 +36,14 @@ RUN bunx turbo run build --filter=@sofa/web --filter=@sofa/server
FROM base AS runner
WORKDIR /app
ARG APP_VERSION
ARG GIT_COMMIT_SHA
ENV NODE_ENV=production
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
ENV DATA_DIR=/data
ENV APP_VERSION=${APP_VERSION}
ENV GIT_COMMIT_SHA=${GIT_COMMIT_SHA}
# API server + packages
COPY --from=builder --chown=bun:bun /app/apps/server/ ./apps/server/
+2 -1
View File
@@ -4,7 +4,8 @@
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
"outputs": ["dist/**"],
"env": ["APP_VERSION", "GIT_COMMIT_SHA"]
},
"dev": {
"dependsOn": ["^build"],