File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11FROM node:16-slim
2-
2+ LABEL description= "Triple Pattern Fragment Server."
33# Install location
44ENV dir /var/www/@ldf/server
55
@@ -16,16 +16,18 @@ RUN npm config set @ldf:registry $NPM_REGISTRY
1616# Install the node module
1717RUN apt-get update && \
1818 apt-get install -y g++ make python && \
19- cd ${dir} && npm install --only=production && \
20- apt-get remove -y g++ make python && apt-get autoremove -y && \
19+ cd ${dir}
20+
21+ WORKDIR ${dir}
22+ RUN npm install --only=production
23+ RUN apt-get remove -y g++ make python && apt-get autoremove -y && \
2124 rm -rf /var/cache/apt/archives
2225
2326# Expose the default port
2427EXPOSE 3000
2528
2629# Run base binary
27- WORKDIR ${dir}
2830ENTRYPOINT ["node" , "bin/ldf-server" ]
2931
3032# Default command
31- CMD ["--help" ]
33+ CMD ["--help" ]
You can’t perform that action at this time.
0 commit comments