15 lines
No EOL
407 B
Docker
15 lines
No EOL
407 B
Docker
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"] |