diff --git a/.dockerignore b/.dockerignore index 9b49524..9c94fbb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,4 +12,7 @@ helm-charts .env .editorconfig .idea -coverage* \ No newline at end of file +coverage* +output* +dist +data \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 89fe97c..76a376f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM debian:12 AS base -WORKDIR /usr/src/app +WORKDIR /opt/app RUN apt-get update && \ apt-get install -y curl unzip ca-certificates python3 python3-pip && \ rm -rf /var/lib/apt/lists/* @@ -35,9 +35,9 @@ ENV NODE_ENV=production # copy production dependencies and source code into final image FROM base AS release COPY --from=install /temp/prod/node_modules node_modules -COPY --from=prerelease /usr/src/app/index.ts . -COPY --from=prerelease /usr/src/app/package.json . - +COPY --from=prerelease /opt/app/src/app.ts . +COPY --from=prerelease /opt/app/package.json . +VOLUME ["/opt/app/data/db"] # run the app USER bun ENTRYPOINT ["./entrypoint.sh"] \ No newline at end of file