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