Merge pull request #26 from HideyoshiSolutions/fix/fixes-docker-image
fix: fixes broken docker image
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,6 +1,12 @@
|
||||
## ------------------------------- Builder Stage ------------------------------ ##
|
||||
FROM python:3.12-slim-bookworm AS builder
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
build-essential \
|
||||
python3-dev \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install poetry==2.2.1
|
||||
@@ -13,12 +19,6 @@ RUN poetry sync --no-root --without dev
|
||||
## ------------------------------- Final Stage ------------------------------ ##
|
||||
FROM python:3.12-slim-bookworm AS production
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
build-essential \
|
||||
python3-dev \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/.venv .venv
|
||||
|
||||
Reference in New Issue
Block a user