fix: multi-stage dockerfile
This commit is contained in:
parent
87840558f5
commit
1e623fcdf5
@ -10,8 +10,9 @@ RUN apk update && \
|
||||
|
||||
WORKDIR /var/wiki
|
||||
|
||||
COPY ./package.json /var/wiki/package.json
|
||||
COPY ./client /var/wiki/client
|
||||
COPY ./package.json ./package.json
|
||||
COPY ./dev ./dev
|
||||
COPY ./client ./client
|
||||
|
||||
RUN yarn
|
||||
RUN yarn build
|
||||
@ -34,10 +35,11 @@ WORKDIR /var/wiki
|
||||
COPY ./dev/build/supervisord.conf /etc/supervisord.conf
|
||||
COPY --from=assets /var/wiki/assets ./assets
|
||||
COPY --from=assets /var/wiki/node_modules ./node_modules
|
||||
COPY ./server /var/wiki/server
|
||||
COPY ./config.sample.yml /var/wiki/config.yml
|
||||
COPY ./package.json /var/wiki/package.json
|
||||
COPY ./LICENSE /var/wiki/LICENSE
|
||||
COPY --from=assets /var/wiki/server ./server
|
||||
COPY ./server ./server
|
||||
COPY ./config.sample.yml ./config.yml
|
||||
COPY ./package.json ./package.json
|
||||
COPY ./LICENSE ./LICENSE
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user