diff --git a/Dockerfile b/Dockerfile index 6dffd53..10d8442 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,9 @@ COPY --from=server-builder /build/server/dist ./dist COPY --from=server-builder /build/server/prisma ./prisma RUN npx prisma generate COPY --from=client-builder /build/client/dist ./public +COPY docker/runtime-entrypoint.sh /usr/local/bin/toolsshow-entrypoint +RUN chmod +x /usr/local/bin/toolsshow-entrypoint EXPOSE 3000 -CMD ["sh", "-c", "npx prisma migrate deploy && node dist/src/main.js"] +CMD ["toolsshow-entrypoint"] diff --git a/client/.env.development.example b/client/.env.development.example new file mode 100644 index 0000000..9291a1f --- /dev/null +++ b/client/.env.development.example @@ -0,0 +1,2 @@ +VITE_API_BASE=/api/v1 +VITE_API_PROXY_TARGET=http://localhost:3000 diff --git a/client/index.html b/client/index.html index f0ba583..e7aa875 100644 --- a/client/index.html +++ b/client/index.html @@ -3,16 +3,14 @@
-