2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-10 15:20:55 +00:00
frappe_docker/build/socketio/Dockerfile

25 lines
564 B
Docker
Raw Normal View History

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