diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..8102be65f84b022d0aa5e741ed1105c097dd63e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM node:22 AS frontend + +COPY web /app/web +WORKDIR /app/web/ + +RUN npm ci +RUN npm run build + +CMD npm run start +EXPOSE 3000 + + +FROM python:3.11 AS app + +COPY api /app/api +WORKDIR /app/api/ + +RUN python3 -m pip install --upgrade pip +RUN pip install /app/api/ + + +FROM app AS web + +RUN pip install gunicorn + +CMD gunicorn --workers 4 --bind 0.0.0.0:8080 image_api.web:app +EXPOSE 8080 + + +FROM app AS worker + +CMD celery --app image_api.worker.app worker