emotion-analysis / Dockerfile
lucasvmigotto's picture
fix(docker): remove volume notation
9c46663
raw
history blame contribute delete
725 Bytes
# syntax=docker/dockerfile:1
FROM ghcr.io/astral-sh/uv:python3.14-trixie AS builder
WORKDIR /build
ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
RUN \
--mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync \
--frozen \
--no-install-project \
--no-editable \
--compile-bytecode \
--no-dev
FROM python:3.14-slim-trixie AS app
WORKDIR /app
COPY ./src/emotion_analysis/ /app/emotion_analysis/
COPY \
--from=builder \
--chown=app:app \
/build/.venv/ \
/app/.venv/
ENTRYPOINT [ "/app/.venv/bin/python"]
CMD [ "-m", "emotion_analysis" ]