Setting up the repo with correct dockerfiles and docker-copmose files, and deleting .idea from git
This commit is contained in:
5
store/.gitignore
vendored
5
store/.gitignore
vendored
@@ -1,5 +0,0 @@
|
||||
venv
|
||||
__pycache__
|
||||
.idea
|
||||
|
||||
.idea/
|
||||
@@ -3,9 +3,10 @@ FROM python:latest
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
# Copy the requirements.txt file and install dependencies
|
||||
COPY requirements.txt .
|
||||
COPY store/requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the entire application into the container
|
||||
COPY . .
|
||||
COPY store/. .
|
||||
# Run the main.py script inside the container when it starts
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]
|
||||
@@ -34,7 +34,9 @@ services:
|
||||
|
||||
store:
|
||||
container_name: store
|
||||
build: ..
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: store/Dockerfile
|
||||
depends_on:
|
||||
- postgres_db
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user