fix: multi-stage dockerfile

pull/760/head
Nicolas Giard 6 years ago
parent 87840558f5
commit 1e623fcdf5

@ -10,8 +10,9 @@ RUN apk update && \
WORKDIR /var/wiki WORKDIR /var/wiki
COPY ./package.json /var/wiki/package.json COPY ./package.json ./package.json
COPY ./client /var/wiki/client COPY ./dev ./dev
COPY ./client ./client
RUN yarn RUN yarn
RUN yarn build RUN yarn build
@ -34,10 +35,11 @@ WORKDIR /var/wiki
COPY ./dev/build/supervisord.conf /etc/supervisord.conf COPY ./dev/build/supervisord.conf /etc/supervisord.conf
COPY --from=assets /var/wiki/assets ./assets COPY --from=assets /var/wiki/assets ./assets
COPY --from=assets /var/wiki/node_modules ./node_modules COPY --from=assets /var/wiki/node_modules ./node_modules
COPY ./server /var/wiki/server COPY --from=assets /var/wiki/server ./server
COPY ./config.sample.yml /var/wiki/config.yml COPY ./server ./server
COPY ./package.json /var/wiki/package.json COPY ./config.sample.yml ./config.yml
COPY ./LICENSE /var/wiki/LICENSE COPY ./package.json ./package.json
COPY ./LICENSE ./LICENSE
EXPOSE 3000 EXPOSE 3000

Loading…
Cancel
Save