zammad-form/Dockerfile

18 lines
444 B
Docker
Raw Permalink Normal View History

2025-01-21 11:47:35 +00:00
#build web app
FROM node:lts-alpine AS build-stage
WORKDIR /app
COPY /frontend ./
RUN npm install
RUN npm run build
#setup flask app
FROM python:3.10-alpine AS production-stage
WORKDIR /app
COPY ./backend /app/backend
#RUN mkdir /app/static
RUN pip install --no-cache-dir -r backend/requirements.txt
COPY --from=build-stage /app/dist /app/frontend/dist/
EXPOSE 8080
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--chdir", "backend", "app:app"]