changed the Working Directory inside the Dockerfile from "/usr/src/app" to "/opt/app"

This commit is contained in:
2025-10-20 16:43:21 +02:00
parent d8e2027efa
commit ae9ae46fea
2 changed files with 8 additions and 5 deletions

View File

@@ -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"]