changed the Working Directory inside the Dockerfile from "/usr/src/app" to "/opt/app"
This commit is contained in:
@@ -12,4 +12,7 @@ helm-charts
|
||||
.env
|
||||
.editorconfig
|
||||
.idea
|
||||
coverage*
|
||||
coverage*
|
||||
output*
|
||||
dist
|
||||
data
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user