From 93c881c1fbee2d5029ed8f30ba8566b5a2f03dec Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 16 Jan 2025 20:29:43 -0300 Subject: [PATCH] fucking arround with docker compose ... --- Dockerfile | 15 +++++++-------- entrypoint.sh | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) 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