返回提交历史
Modified
Dockerfile
+4
-4
XFEstudio/XFESpaceNinjaServer
chore(docker): install npm deps before copying all of SNS (#3174)
this allows docker to reuse the deps as long as they're not changed instead of having to reinstall them for every change to SNS Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3174 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
55d2f80c
代码差异
1 个文件
+4
-4
@@ -1,11 +1,11 @@
1
1
FROM node:24-alpine3.21
2
WORKDIR /app
2
3
3
4
RUN apk add --no-cache bash jq
4
5
5
COPY . /app
6
WORKDIR /app
7
6
COPY package.json package-lock.json /app
8
7
RUN npm i --omit=dev --omit=optional
9
RUN date '+%d %B %Y' > BUILD_DATE
10
8
9
COPY . /app
10
RUN date '+%d %B %Y' > BUILD_DATE
11
11
ENTRYPOINT ["/app/docker-entrypoint.sh"]