Skip to content

Commit a825aea

Browse files
committed
Update Node image to version 22 in Dockerfile, install dependencies and add templates directory to the server module for building and releasing the application.
1 parent 8dd93e6 commit a825aea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
FROM node:21-alpine AS build
1+
FROM node:22-alpine AS build
22
ENV NODE_ENV=development
33

44
WORKDIR /build
55

66
COPY server ./server
77
RUN cd server && \
8+
yarn install && \
89
yarn build && \
910
yarn swaggergen && \
1011
cd ..
1112
COPY client ./client
1213
RUN cd client && \
14+
yarn install && \
1315
yarn build && \
1416
cd ..
1517

@@ -25,6 +27,7 @@ WORKDIR /app/
2527

2628
COPY --from=build /build/server/dist /app/server
2729
COPY --from=build /build/server/package.json /app/server/package.json
30+
COPY --from=build /build/server/src/modules/templates /app/server/modules/templates
2831
COPY --from=build /build/server/node_modules /app/server/node_modules
2932
COPY --from=build /build/server/swagger.json /app/swagger.json
3033

0 commit comments

Comments
 (0)