Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile.mciammanager
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ COPY --from=builder /mc-iam-manager /app/mc-iam-manager
# Copy necessary assets from the builder stage
COPY --from=builder /app/asset ./asset

# Copy .env file to multiple locations for compatibility with the application's .env loading logic
COPY .env /app/.env
COPY .env /.env
# .env is no longer tracked in git (IAM-BUG-009), so it doesn't exist in the build
# context. Ship the template as a fallback default in both lookup paths; godotenv
# only fills in variables not already set, so real values injected via
# docker-compose env_file/environment always take precedence over this fallback.
COPY .env.setup /app/.env
COPY .env.setup /.env

# Expose the application port (adjust if different)
EXPOSE 8082

# Command to run the application
# The application reads .env from multiple locations for compatibility
CMD ["./mc-iam-manager"]
Loading