Skip to content

Commit

Permalink
backend Dockerfile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chronis10 committed Jun 3, 2024
1 parent 40a4f75 commit 8be6706
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" | sudo tee -a .env > /dev/null
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" | sudo tee -a .env > /dev/null
echo "POSTGRES_DB=${{ secrets.POSTGRES_DB }}" | sudo tee -a .env > /dev/null
echo "DATABASE=postgresql://\${{secrets.POSTGRES_USER}}:\${{secrets.POSTGRES_PASSWORD}}@db:5432/\${{secrets.POSTGRES_DB}}" | sudo tee -a .env > /dev/null
echo "DATABASE=postgresql://${{secrets.POSTGRES_USER}}:${{secrets.POSTGRES_PASSWORD}}@db:5432/${{secrets.POSTGRES_DB}}" | sudo tee -a .env > /dev/null
sudo docker compose -f docker-compose-production.yml down
sudo docker compose -f docker-compose-production.yml build --no-cache
sudo docker compose -f docker-compose-production.yml up -d
Expand Down
5 changes: 5 additions & 0 deletions back-end/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ FROM python:3.9
WORKDIR /usr/src/app/back-end

# Copy the current directory contents into the container at /usr/src/app

COPY main.py .
COPY requirements.txt .
COPY database/ ./database/
COPY models/ ./models/
COPY utils/ ./utils/


# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
Expand Down

0 comments on commit 8be6706

Please sign in to comment.