Skip to content

Commit 7c8b0b5

Browse files
committed
refactor Dockerfile for STATIC_DIR environment variable
1 parent 3977f63 commit 7c8b0b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ RUN mv dist/fs.cjs ./ && \
1919
FROM ubuntu:noble as fs
2020
WORKDIR /root/fs
2121
COPY --from=sssomeshhh/rentify:be /root/be/fs .
22-
COPY --from=sssomeshhh/rentify:fe /root/fe/build ./fe
23-
ENV NODE_NO_WARNINGS=1 IS_EVAL=true SERVER_PORT=80
22+
COPY --from=sssomeshhh/rentify:fe /root/fe/build ./static
23+
ENV NODE_NO_WARNINGS=1 IS_EVAL=true SERVER_PORT=80 STATIC_DIR=/root/fs/static
2424
CMD ./fs
2525

2626
FROM mongo:latest as rn
2727
WORKDIR /root/rn
2828
COPY --from=sssomeshhh/rentify:fs /root/fs .
29-
ENV NODE_NO_WARNINGS=1 IS_EVAL=true SERVER_PORT=80
29+
ENV NODE_NO_WARNINGS=1 IS_EVAL=true SERVER_PORT=80 STATIC_DIR=/root/rn/static
3030
RUN echo "mongod > /dev/null 2>&1 & disown ; ./fs ;" > stRn
3131
CMD bash ./stRn

0 commit comments

Comments
 (0)