Browse Source

Minor improvements

pull/5821/head
Thomas Kaul 2 weeks ago
parent
commit
d95b38df20
  1. 4
      Dockerfile
  2. 2
      apps/api/src/dependencies.ts

4
Dockerfile

@ -13,11 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-suggests \
# Only add basic files without the application itself to avoid rebuilding # Only add basic files without the application itself to avoid rebuilding
# layers when files (package.json etc.) have not changed # layers when files (package.json etc.) have not changed
COPY ./.config .config/
COPY ./CHANGELOG.md CHANGELOG.md COPY ./CHANGELOG.md CHANGELOG.md
COPY ./LICENSE LICENSE COPY ./LICENSE LICENSE
COPY ./package.json package.json COPY ./package.json package.json
COPY ./package-lock.json package-lock.json COPY ./package-lock.json package-lock.json
COPY ./.config/ .config/
COPY ./prisma/schema.prisma prisma/ COPY ./prisma/schema.prisma prisma/
RUN npm install RUN npm install
@ -44,7 +44,7 @@ WORKDIR /ghostfolio/dist/apps/api
COPY ./package-lock.json /ghostfolio/dist/apps/api/ COPY ./package-lock.json /ghostfolio/dist/apps/api/
RUN npm install RUN npm install
COPY ./.config /ghostfolio/dist/apps/api/.config/ COPY .config /ghostfolio/dist/apps/api/.config/
COPY prisma /ghostfolio/dist/apps/api/prisma/ COPY prisma /ghostfolio/dist/apps/api/prisma/
# Overwrite the generated package.json with the original one to ensure having # Overwrite the generated package.json with the original one to ensure having

2
apps/api/src/dependencies.ts

@ -1,3 +1,3 @@
// Dependencies required by .config/ in Docker container // Dependencies required by .config/prisma.ts in Docker container
import 'dotenv'; import 'dotenv';
import 'dotenv-expand'; import 'dotenv-expand';

Loading…
Cancel
Save