From 85ec6fe20a9cdf27bf55efd6d939207399b41fa4 Mon Sep 17 00:00:00 2001 From: Abdulrhmn Ghanem Date: Thu, 27 Oct 2022 18:12:56 +0200 Subject: [PATCH] copy server.js directly without creating src dir --- frontend/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index bb42ef7619..772bc89841 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -31,9 +31,8 @@ COPY --chmod=${PERMISSION} --from=build /deps/node_modules/ node_modules/ COPY --chmod=${PERMISSION} package.json . COPY --chmod=${PERMISSION} next.config.js . COPY --chmod=${PERMISSION} public/ public/ -RUN mkdir src/ && chown -R node src -COPY --chmod=${PERMISSION} src/server.js src/server.js +COPY --chmod=${PERMISSION} src/server.js server.js USER node -CMD ["node", "src/server.js"] +CMD ["node", "server.js"]