Skip to content

Commit 311226e

Browse files
committed
server(Dockerfile): copy frontend from /usr/share/nginx/html of editor image instead of /web/editor/dist
1 parent bfac8ef commit 311226e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ RUN if [ -f package-lock.json ]; then npm ci --production; else npm install --pr
2424
# Copy built server
2525
COPY --from=server-build /srv/server/dist ./dist
2626

27-
# Copy built frontend to editor-dist so server can serve it
28-
COPY --from=web-build /web/editor/dist ./editor-dist
27+
# Copy built frontend from the editor image (nginx html location) so the server can serve it
28+
# The editor image places the built site at /usr/share/nginx/html
29+
COPY --from=web-build /usr/share/nginx/html ./editor-dist
2930

3031
EXPOSE 4000
3132
ENV NODE_ENV=production

0 commit comments

Comments
 (0)