zammad-form/Dockerfile

20 lines
No EOL
472 B
Docker

#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
COPY ./entrypoint.sh /entrypoint.sh
#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
RUN ["chmod", "+x", "/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]