|
|
|
@ -26,8 +26,8 @@ RUN npm install |
|
|
|
COPY ./decorate-angular-cli.js decorate-angular-cli.js |
|
|
|
RUN node decorate-angular-cli.js |
|
|
|
|
|
|
|
COPY ./apps apps |
|
|
|
COPY ./libs libs |
|
|
|
COPY ./apps apps/ |
|
|
|
COPY ./libs libs/ |
|
|
|
COPY ./jest.config.ts jest.config.ts |
|
|
|
COPY ./jest.preset.js jest.preset.js |
|
|
|
COPY ./nx.json nx.json |
|
|
|
@ -41,15 +41,15 @@ RUN npm run build:production |
|
|
|
WORKDIR /ghostfolio/dist/apps/api |
|
|
|
# package.json was generated by the build process, however the original |
|
|
|
# package-lock.json needs to be used to ensure the same versions |
|
|
|
COPY ./package-lock.json /ghostfolio/dist/apps/api/package-lock.json |
|
|
|
COPY ./package-lock.json /ghostfolio/dist/apps/api/ |
|
|
|
|
|
|
|
RUN npm install |
|
|
|
COPY prisma.config.ts /ghostfolio/dist/apps/api |
|
|
|
COPY prisma /ghostfolio/dist/apps/api/prisma |
|
|
|
COPY prisma.config.ts /ghostfolio/dist/apps/api/ |
|
|
|
COPY prisma /ghostfolio/dist/apps/api/prisma/ |
|
|
|
|
|
|
|
# Overwrite the generated package.json with the original one to ensure having |
|
|
|
# all the scripts |
|
|
|
COPY package.json /ghostfolio/dist/apps/api |
|
|
|
COPY package.json /ghostfolio/dist/apps/api/ |
|
|
|
RUN npm run database:generate-typings |
|
|
|
|
|
|
|
# Image to run, copy everything needed from builder |
|
|
|
@ -62,8 +62,8 @@ RUN apt-get update && apt-get install -y --no-install-suggests \ |
|
|
|
openssl \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
COPY --chown=node:node --from=builder /ghostfolio/dist/apps /ghostfolio/apps |
|
|
|
COPY --chown=node:node ./docker/entrypoint.sh /ghostfolio/entrypoint.sh |
|
|
|
COPY --chown=node:node --from=builder /ghostfolio/dist/apps /ghostfolio/apps/ |
|
|
|
COPY --chown=node:node ./docker/entrypoint.sh /ghostfolio/ |
|
|
|
WORKDIR /ghostfolio/apps/api |
|
|
|
EXPOSE ${PORT:-3333} |
|
|
|
USER node |
|
|
|
|