Skip to content

Commit

Permalink
API CHANGES]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 2, 2025
1 parent 3a1a614 commit acd84ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.api → api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements from api folder
COPY api/requirements.txt .
# Copy requirements
COPY requirements.txt .
RUN pip install --no-cache-dir wheel && \
pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt

Expand Down Expand Up @@ -46,7 +46,7 @@ RUN python -m venv /app/venv && \
/app/venv/bin/pip install --no-cache-dir /app/wheels/*

# Copy application code
COPY --chown=app:app ./api ./api
COPY --chown=app:app . /app/api

# Switch to app user
USER app
Expand All @@ -71,4 +71,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:$PORT/health || exit 1

# Start command
CMD ["sh", "-c", "uvicorn api.api:app --host 0.0.0.0 --port $PORT --workers $WORKERS --log-level $LOG_LEVEL"]
CMD ["sh", "-c", "uvicorn api:app --host 0.0.0.0 --port $PORT --workers $WORKERS --log-level $LOG_LEVEL"]

0 comments on commit acd84ef

Please sign in to comment.