changed the Working Directory inside the Dockerfile from "/usr/src/app" to "/opt/app"
This commit is contained in:
@@ -13,3 +13,6 @@ helm-charts
|
|||||||
.editorconfig
|
.editorconfig
|
||||||
.idea
|
.idea
|
||||||
coverage*
|
coverage*
|
||||||
|
output*
|
||||||
|
dist
|
||||||
|
data
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
FROM debian:12 AS base
|
FROM debian:12 AS base
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /opt/app
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl unzip ca-certificates python3 python3-pip && \
|
apt-get install -y curl unzip ca-certificates python3 python3-pip && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@@ -35,9 +35,9 @@ ENV NODE_ENV=production
|
|||||||
# copy production dependencies and source code into final image
|
# copy production dependencies and source code into final image
|
||||||
FROM base AS release
|
FROM base AS release
|
||||||
COPY --from=install /temp/prod/node_modules node_modules
|
COPY --from=install /temp/prod/node_modules node_modules
|
||||||
COPY --from=prerelease /usr/src/app/index.ts .
|
COPY --from=prerelease /opt/app/src/app.ts .
|
||||||
COPY --from=prerelease /usr/src/app/package.json .
|
COPY --from=prerelease /opt/app/package.json .
|
||||||
|
VOLUME ["/opt/app/data/db"]
|
||||||
# run the app
|
# run the app
|
||||||
USER bun
|
USER bun
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user