29 lines
708 B
Docker
29 lines
708 B
Docker
# Base image for Python
|
|
FROM python:3.10-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy shared modules first
|
|
COPY helpers.py /app/
|
|
COPY config.py /app/
|
|
|
|
# Copy application-specific files
|
|
COPY gtm_architect_orchestrator.py /app/
|
|
COPY gtm-architect /app/gtm-architect
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r /app/gtm-architect/requirements.txt
|
|
|
|
# Install Node.js and npm
|
|
RUN apt-get update && apt-get install -y nodejs npm && npm cache clean --force
|
|
|
|
# Install Node.js dependencies for the frontend bridge
|
|
RUN npm install --prefix /app/gtm-architect
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 3005
|
|
|
|
# Command to run the application
|
|
CMD ["node", "/app/gtm-architect/server.cjs"]
|