Skip to content
Snippets Groups Projects
Commit 7281821e authored by benjamin.gliech@etu.unistra.fr's avatar benjamin.gliech@etu.unistra.fr
Browse files

Added Dockerfile

parent 11374e7f
No related merge requests found
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment