mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 17:05:56 -04:00
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:
@@ -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
@@ -4,7 +4,8 @@
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
"outputs": ["dist/**"],
|
||||
"env": ["APP_VERSION", "GIT_COMMIT_SHA"]
|
||||
},
|
||||
"dev": {
|
||||
"dependsOn": ["^build"],
|
||||
|
||||
Reference in New Issue
Block a user