Skip to content

Commit

Permalink
Refactor Docker setup by moving Dockerfile and docker-compose.yml to …
Browse files Browse the repository at this point in the history
…api directory
  • Loading branch information
upayanmazumder committed Nov 28, 2024
1 parent 91af50f commit 971a99f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile → api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM python:3.11

# Create and change to the app directory
WORKDIR /app
COPY api/requirements.txt ./api/
COPY requirements.txt ./

# Install dependencies for the api folder
WORKDIR /app/api
WORKDIR /app/
RUN pip install --no-cache-dir -r requirements.txt

# Copy the local code to the container image
Expand All @@ -17,4 +17,4 @@ COPY . .
EXPOSE 3000

# Run the web service on container startup
CMD ["gunicorn", "-c", "api/gunicorn_config.py", "api.main:app"]
CMD ["gunicorn", "-c", "gunicorn_config.py", "main:app"]
File renamed without changes.

0 comments on commit 971a99f

Please sign in to comment.