This commit is contained in:
parent
61e9953c86
commit
90e8b7272a
|
@ -1,9 +1,7 @@
|
||||||
FROM python:alpine
|
FROM python:alpine
|
||||||
|
|
||||||
# Update package lists and install necessary dependencies
|
# Update package lists and install necessary dependencies
|
||||||
RUN apk update &&
|
RUN apk update && apk add --no-cache build-base icu-data-full curl python3-dev musl-dev && curl -sSL https://install.python-poetry.org | python
|
||||||
apk add --no-cache build-base icu-data-full curl python3-dev musl-dev &&
|
|
||||||
curl -sSL https://install.python-poetry.org | python
|
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -12,9 +10,7 @@ WORKDIR /app
|
||||||
COPY pyproject.toml /app/
|
COPY pyproject.toml /app/
|
||||||
|
|
||||||
# Install poetry and dependencies
|
# Install poetry and dependencies
|
||||||
RUN pip install poetry &&
|
RUN pip install poetry && poetry config virtualenvs.create false && poetry install --no-root --only main
|
||||||
poetry config virtualenvs.create false &&
|
|
||||||
poetry install --no-root --only main
|
|
||||||
|
|
||||||
# Copy the rest of the files
|
# Copy the rest of the files
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
Loading…
Reference in New Issue
Block a user