Skip to content

Commit

Permalink
update dev dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsk1 committed Jul 7, 2024
1 parent 579e7b9 commit 5f381cf
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# docker/Dockerfile.dev

# Base image
FROM node:18 as frontend

# Set working directory
WORKDIR /app/frontend

# Copy package.json and package-lock.json
COPY frontend/package*.json ./
COPY ../frontend/package*.json ./

# Install dependencies
RUN npm install
Expand All @@ -19,7 +17,7 @@ FROM python:3.12
WORKDIR /app

# Copy backend requirements
COPY requirements.txt .
COPY ../requirements.txt .

# Install backend dependencies
RUN pip install --no-cache-dir -r requirements.txt
Expand All @@ -28,16 +26,16 @@ RUN pip install --no-cache-dir -r requirements.txt
RUN pip install uvicorn

# Copy backend source
COPY backend.py shared_utils.py ./
COPY ../backend.py ../shared_utils.py ./

# Copy the projects folder
COPY projects ./projects
COPY ../projects ./projects

# Expose ports
EXPOSE 8000 5173

# Copy the start script
COPY docker/start-dev.sh /start-dev.sh
COPY start-dev.sh /start-dev.sh
RUN chmod +x /start-dev.sh

# Set the entrypoint
Expand Down

0 comments on commit 5f381cf

Please sign in to comment.