Skip to content

Commit

Permalink
improve project structure; follow nynvr project template structure;
Browse files Browse the repository at this point in the history
  • Loading branch information
noynovera committed Dec 13, 2024
1 parent 725b786 commit 08b816f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions deploy/api/api.development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
FROM python:3.12

# Set the working directory in the container
WORKDIR /code
WORKDIR /app

# Copy package.json and package-lock.json
COPY ./apps/api/app/requirements.txt /code/app/requirements.txt
COPY ./apps/api/app/requirements.txt ./

# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy the current directory contents into the container at /app
COPY ./apps/api/app /code/app
COPY ./deploy/api/api.development.run.sh /code/api.run.sh
COPY ./apps/api/app .
COPY ./deploy/api/api.development.run.sh /scripts/api.run.sh

RUN chmod +x /code/api.run.sh
CMD ["/code/api.run.sh"]
RUN chmod +x /scripts/api.run.sh
CMD ["/scripts/api.run.sh"]
2 changes: 1 addition & 1 deletion deploy/api/api.development.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

echo "API - Running in development mode..."

fastapi dev app/main.py --host 0.0.0.0 --port 8000
fastapi dev main.py --host 0.0.0.0 --port 8000
2 changes: 1 addition & 1 deletion docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
depends_on:
- db
volumes:
- ./apps/api/app:/code/app
- ./apps/api/app:/app

web:
build:
Expand Down

0 comments on commit 08b816f

Please sign in to comment.