From 550228f6d250ef50321d2b00245451330aeb1afb Mon Sep 17 00:00:00 2001 From: Its4Nik Date: Sat, 24 Aug 2024 18:02:26 +0200 Subject: [PATCH] adjust locations --- Dockerfile | 3 ++- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46b4349..50e498f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,6 @@ COPY . /build # Install dependencies and build the React app RUN npm install --force && \ npm run build && \ - npm install -g serve && \ chmod +x /build/entrypoint.sh # Final stage @@ -28,6 +27,8 @@ WORKDIR /app COPY --from=build /build/build /app COPY --from=build /build/entrypoint.sh /app +RUN npm install -g serve + EXPOSE 3000 # Run the entrypoint script diff --git a/entrypoint.sh b/entrypoint.sh index f69d64b..299c7eb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,6 +16,6 @@ echo " \"DEFAULT_THEME\": \"${DEFAULT_THEME}\", \"SECRET\": \"${SECRET}\" } -" > /build/public/config.json +" > /app/public/config.json exec serve -s build \ No newline at end of file