fix: multi-stage dockerfile

This commit is contained in:
Nicolas Giard 2018-11-03 22:15:49 -04:00
parent 87840558f5
commit 1e623fcdf5

View File

@ -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