a year ago
I'm getting an unknown error trying to start a lightdash image with dbt and have had it a few times. The console says to reach out if I continue to see issues. My docker file is:
# Dockerfile for Lightdash with embedded dbt project
FROM lightdash/lightdash:latest
# Set working directory for dbt project
WORKDIR /usr/app/dbt
# Copy dbt project files from project root
COPY dbt/ ./
# Install Python and dbt to compile the project and generate manifest.json
USER root
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv && \
rm -rf /var/lib/apt/lists/* && \
pip3 install --no-cache-dir --break-system-packages dbt-core dbt-postgres
# Generate manifest.json at build time
# dbt parse generates the manifest without needing database connection
RUN dbt deps --profiles-dir . && \
dbt parse --profiles-dir .
# Set environment variables for Lightdash
ENV DBT_PROJECT_DIR=/usr/app/dbt
# Switch back to lightdash user for security
USER lightdash
# Expose the Lightdash port
EXPOSE 8080
2 Replies
a year ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Next.js Application Fails to Start on Railway with ELIFECYCLE Error
- 🧵 Container stuck in "Starting" phase and repeating npm start loop
- 🧵 PostHog Template crashing on Deployment
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Hello,
You have since deleted the service in question. If you encounter this issue again with a new service, please reopen the thread
Status changed to Awaiting User Response Railway • 11 months ago
10 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 10 months ago