From 612af47eefbe6f5cf9ae79ffbac3adda0d1a1fac Mon Sep 17 00:00:00 2001 From: William DA SILVA Date: Fri, 11 Jun 2021 13:50:06 +0200 Subject: [PATCH] fix: debugging Docker image --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9af03db..28dd173 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,12 @@ RUN npm run build FROM node:10.9.0-alpine as release -COPY --from=build /app/dist . +WORKDIR / + +COPY --from=build /app/dist/index.js ./index.js COPY package.json package-lock.json ./ RUN npm ci --production -CMD ["node", "index.js"] +ENTRYPOINT ["node", "/index.js"]