2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-25 08:08:36 +00:00

24 lines
563 B
Docker
Raw Normal View History

FROM alpine/git as builder
2021-12-13 19:26:45 +03:00
ARG FRAPPE_VERSION
RUN git clone --depth 1 -b ${FRAPPE_VERSION} https://github.com/frappe/frappe /opt/frappe
2021-12-13 19:26:45 +03:00
FROM node:17-alpine
2021-12-13 19:26:45 +03:00
RUN addgroup -S frappe \
&& adduser -S frappe -G frappe
USER frappe
2020-02-10 13:30:54 +05:30
WORKDIR /home/frappe/frappe-bench
2021-12-13 19:26:45 +03:00
RUN mkdir -p sites apps/frappe
2020-02-10 13:30:54 +05:30
2021-12-13 19:26:45 +03:00
COPY --from=builder /opt/frappe/socketio.js /opt/frappe/node_utils.js apps/frappe/
COPY package.json apps/frappe/
2020-02-10 13:30:54 +05:30
RUN cd apps/frappe \
2021-12-13 19:26:45 +03:00
&& npm install
2020-02-10 13:30:54 +05:30
WORKDIR /home/frappe/frappe-bench/sites
2021-12-13 19:26:45 +03:00
CMD [ "node", "/home/frappe/frappe-bench/apps/frappe/socketio.js" ]