Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 13, 2024
1 parent 19fc2cb commit 423c5e6
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
# Stage 1: Use python:3.12 to install dependencies
FROM python:3.12 as builder
FROM python:3.12

WORKDIR /app

RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

RUN pip install psutil

# Stage 2: Use python:3.12-alpine and copy installed dependencies from builder stage
FROM python:3.12-alpine

WORKDIR /app

COPY --from=builder /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

Expand Down

0 comments on commit 423c5e6

Please sign in to comment.