forked from plone/volto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 699 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:12-stretch-slim
RUN runDeps="openssl ca-certificates patch" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $runDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/frontend \
&& chown -R node /opt/frontend
WORKDIR /opt/frontend/
RUN npm install -g yo @plone/generator-volto wait-on
USER node
RUN yo --no-insight @plone/volto --no-interactive
RUN RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn \
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn build
COPY entrypoint.sh /
EXPOSE 3000 3001 4000 4001
ENTRYPOINT ["/entrypoint.sh"]
CMD ["yarn", "start:prod"]