diff --git a/templates/todo/web/vite-react-fluent/Dockerfile b/templates/todo/web/vite-react-fluent/Dockerfile index d7034d041d5..25686b7fe91 100644 --- a/templates/todo/web/vite-react-fluent/Dockerfile +++ b/templates/todo/web/vite-react-fluent/Dockerfile @@ -5,11 +5,6 @@ WORKDIR /app COPY . . -# Fix up entrypoint line endings and make exec -RUN apk update && apk add --no-cache dos2unix \ - && dos2unix /app/entrypoint.sh && chmod +x /app/entrypoint.sh \ - && apk del dos2unix - # install project dependencies RUN npm ci RUN npm run build @@ -17,10 +12,9 @@ RUN npm run build FROM nginx:alpine WORKDIR /usr/share/nginx/html -COPY --from=build /app/entrypoint.sh /bin -COPY --from=build /app/build . +COPY --from=build /app/dist . COPY --from=build /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -CMD ["/bin/sh", "-c", "echo $REACT_APP_WEB_BASE_URL && /bin/entrypoint.sh -o /usr/share/nginx/html/env-config.js && nginx -g \"daemon off;\""] \ No newline at end of file +CMD ["/bin/sh", "-c", "nginx -g \"daemon off;\""]