@@ -15,12 +15,6 @@ ENV ETHLANCE_SERVER_ROOT=${ETHLANCE_SOURCE_ROOT}/server \
1515WORKDIR ${ETHLANCE_SOURCE_ROOT}
1616COPY . .
1717
18- RUN ls -lah
19- RUN cat "${SMART_CONTRACTS_PATH}"
20-
21- # # WORKDIR /build/ethlance-config/
22- # # COPY ethlance-config .
23-
2418# # WORKDIR /build
2519COPY ethlance-config/config "${ETHLANCE_SOURCE_ROOT}/config"
2620
@@ -42,35 +36,16 @@ RUN yarn && npx shadow-cljs release dev-server
4236
4337# Final stage - minimal runtime image
4438FROM node:20-slim
45- # # ENV ETHLANCE_ENV=prod \
46- # # ETHLANCE_SOURCE_ROOT=/build/ethlance \
47- # # ETHLANCE_SERVER_ROOT=${ETHLANCE_SOURCE_ROOT}/server \
48- # # UI_CONFIG_PATH="${ETHLANCE_SOURCE_ROOT}/config/ui-config-${ETHLANCE_ENV}.edn" \
49- # # ETHLANCE_CONFIG_PATH="${ETHLANCE_SOURCE_ROOT}/config/server-config-${ETHLANCE_ENV}.edn"
50-
51- # # WORKDIR "${ETHLANCE_SERVER_ROOT}"
52- # # COPY --from=builder /build /build
53- # # # COPY --from=build_server /build/ethlance/config/ui-config-${ETHLANCE_ENV}.edn /deploy/resources/config/ui-config-${ETHLANCE_ENV}.edn
54- # # # COPY --from=build_server /build/ethlance/config/server-config-${ETHLANCE_ENV}.edn /deploy/resources/config/server-config-${ETHLANCE_ENV}.edn
55- # # # COPY --from=build_server /build/ethlance/resources /deploy/resources
56- # # # COPY --from=build_server /build/ethlance/server/node_modules /deploy/server/node_modules/
57- # # # COPY --from=build_server /build/ethlance/server/package.json /build/ethlance/server/out/ethlance_server* /deploy/server/
58- # # # COPY --from=build_server /build/ethlance/resources/public/contracts /deploy/ui/contracts/
59- # # # COPY --from=build_server /build/ethlance/ui/resources/public/* /deploy/ui/
60- # # RUN echo -n "{:last-processed-block 27409455}" > ethlance-events.log
61- # # CMD [ "node", "out/ethlance_server.js" ]
62-
6339ENV ETHLANCE_ENV=prod \
64- ETHLANCE_SOURCE_ROOT=/build/ethlance \
65- ETHLANCE_SERVER_ROOT=/build/ethlance/server \
40+ ETHLANCE_SOURCE_ROOT=/build/ethlance
41+ ENV ETHLANCE_SERVER_ROOT=/build/ethlance/server \
6642 SMART_CONTRACTS_BUILD_PATH="${ETHLANCE_SOURCE_ROOT}/resources/public/contracts/build" \
6743 SMART_CONTRACTS_PATH="${ETHLANCE_SOURCE_ROOT}/shared/src/ethlance/shared/smart_contracts_${ETHLANCE_ENV}.cljs" \
6844 UI_CONFIG_PATH="/build/ethlance/config/ui-config-prod.edn" \
6945 ETHLANCE_CONFIG_PATH="/build/ethlance/config/server-config-prod.edn"
7046
7147WORKDIR ${ETHLANCE_SERVER_ROOT}
7248
73- # Only copy what's needed for runtime
7449COPY --from=builder /build /build
7550# COPY --from=builder /build/ethlance/config/ui-config-prod.edn /build/ethlance/config/ui-config-prod.edn
7651# COPY --from=builder /build/ethlance/config/server-config-prod.edn /build/ethlance/config/server-config-prod.edn
0 commit comments