mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Improve build performance
This commit is contained in:
parent
9c61f0c151
commit
03da595cd8
|
@ -7,9 +7,13 @@ WORKDIR /usr/app
|
||||||
|
|
||||||
COPY package* ./
|
COPY package* ./
|
||||||
|
|
||||||
|
# Install prod dependencies
|
||||||
|
RUN npm i --only=prod
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
FROM base AS dependencies
|
FROM base AS dependencies
|
||||||
|
|
||||||
|
# Install dev dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Build app
|
# Build app
|
||||||
|
@ -24,8 +28,6 @@ FROM base AS prod
|
||||||
|
|
||||||
COPY --from=builder /usr/app/dist dist
|
COPY --from=builder /usr/app/dist dist
|
||||||
|
|
||||||
RUN npm i --only=prod
|
|
||||||
|
|
||||||
ENV DATA_DIR /data
|
ENV DATA_DIR /data
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
|
|
Loading…
Reference in a new issue