c3lf-system-3/Dockerfile

15 lines
407 B
Text
Raw Normal View History

2023-11-23 22:17:20 +00:00
FROM node:13 AS build
RUN mkdir /app
WORKDIR /app
COPY /web /app/web
RUN rm /app/web/package-lock.json
RUN cd /app/web && yarn install
RUN mkdir /app/web/dist
FROM debian:bookworm-slim AS production
RUN apt-get update && apt-get install -y nginx redis python3 python3-pip python3-venv mariadb-server postfix
COPY /core /app/core
COPY --from=build /app/web/dist /app/core/web/dist
ENTRYPOINT ["top", "-b"]