Keep getting error that container failed to start and timed out
rostgoat
HOBBYOP
2 years ago
My container keep timing out after 30 min of trying to build. How can I see more debug logs on what the issue is?
ⓘ Deployment information is only viewable by project members and Railway employees.
10 Replies
2 years ago
Please attach your full build logs -
2 years ago
Congratulations, that is the largest image I have ever seen by a very wide margin, why is your final image over 11 gigabytes??
rostgoat
HOBBYOP
2 years ago
Lol, interesting. I am not sure why it's 11gb, it's 1.5 locally on my machine when I run docker build .
Attachments
rostgoat
HOBBYOP
2 years ago
what does your deployement script do differently?Here is my Dockerfile for reference:```
FROM python:3.11.8-slim-bullseye
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app/
# Copy dependencies
COPY pyproject.toml poetry.lock /app/
COPY scripts/entrypoint.sh /app/entrypoint.sh
# Install dependencies
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install
# Copy the current directory contents into the container at /usr/src/app/
COPY . .
# Collect static files
RUN python manage.py collectstatic --noinput
# Run the application
CMD ["/app/entrypoint.sh"]
rostgoat
HOBBYOP
2 years ago
I don't get your question
rostgoat
HOBBYOP
2 years ago
in my screencap, my docker has 64gb allocated, ssd is 500gb.