@@ -8,19 +8,21 @@ ENV NODE_ENV production
88COPY package.json yarn.lock ./
99RUN yarn install --production
1010
11- FROM --platform=linux/amd64 node:10.16.0-buster-slim AS elm-build
12- RUN npm install --unsafe-perm -g
[email protected] --silent
13- RUN apt-get -qq update && apt-get install -y netbase && rm -rf /var/lib/apt/lists/*
14- WORKDIR /home/node/app/elm-client
15- COPY ./elm-client/elm-package.json .
16- RUN elm package install -y
17- COPY ./elm-client/ /home/node/app/elm-client/
18- RUN elm make Main.elm --output=client/index.js
11+ # FROM --platform=linux/amd64 node:10.16.0-buster-slim AS elm-build
12+ # RUN npm install --unsafe-perm -g [email protected] --silent13+ # RUN apt-get -qq update && apt-get install -y netbase && rm -rf /var/lib/apt/lists/*
14+ # WORKDIR /home/node/app/elm-client
15+ # COPY ./elm-client/elm-package.json .
16+ # RUN elm package install -y
17+ # COPY ./elm-client/ /home/node/app/elm-client/
18+ # RUN elm make Main.elm --output=client/index.js
19+ FROM --platform=linux/amd64 mohsenasm/swarm-dashboard:v2.6 AS elm-copy
1920
2021FROM base AS release
2122ENV LEGO_PATH=/lego-files
2223COPY --from=dependencies /home/node/app/node_modules node_modules
23- COPY --from=elm-build /home/node/app/elm-client/client/ client
24+ # COPY --from=elm-build /home/node/app/elm-client/client/ client
25+ COPY --from=elm-copy /home/node/app/client client
2426COPY package.json package.json
2527COPY server server
2628COPY server.sh server.sh
0 commit comments