forked from rez0n/docker-nodebb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 658 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 658 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
27
28
FROM node:12
LABEL org.opencontainers.image.source https://github.com/rez0n/docker-nodebb
ENV NODE_ENV=production \
daemon=false \
silent=false
ARG RELEASE
RUN mkdir -p /usr/src/app
RUN mkdir -p /data
WORKDIR /usr/src/app
RUN wget https://github.com/NodeBB/NodeBB/archive/${RELEASE}.tar.gz -O nodebb.tar.gz \
&& tar xzf nodebb.tar.gz --strip-components 1 \
&& rm nodebb.tar.gz \
&& cp install/package.json package.json \
&& npm install --only=prod \
&& npm cache clean --force
VOLUME /data
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "node", "loader.js" ]
EXPOSE 4567