diff --git a/Dockerfile b/Dockerfile index c2929fb..f662a48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # backend/Dockerfile FROM python:3.9-slim -RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan -p 222 git.impstyle.com >> ~/.ssh/known_hosts + # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 @@ -16,15 +16,14 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies -COPY requirements.txt . +#COPY requirements.txt . +COPY . . RUN pip install --no-cache-dir -r requirements.txt -# Copy project -COPY . . # Copy entrypoint script and set permissions -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh \ - && sed -i 's/\r$//g' /entrypoint.sh +#COPY entrypoint.sh /entrypoint.sh +#RUN chmod +x /entrypoint.sh \ +# && sed -i 's/\r$//g' /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] +#ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 60bffb8..6a399d4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Wait for postgres to be ready while ! nc -z db 5432; do