From f11086954fc78682424719af007cb23920fe7689 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Thu, 29 May 2025 20:38:44 +0530 Subject: [PATCH] refactor: rename to Dockerfile.frontend --- Dockerfile.frontend | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile.frontend diff --git a/Dockerfile.frontend b/Dockerfile.frontend new file mode 100644 index 00000000..9cb25d6f --- /dev/null +++ b/Dockerfile.frontend @@ -0,0 +1,22 @@ +FROM --platform=$BUILDPLATFORM node:18-alpine AS builder + +WORKDIR /app + +# Copy package files +COPY package*.json ./ + +# Install dependencies +RUN npm install --legacy-peer-deps + +# Copy frontend source code and config +COPY src ./src +COPY public ./public +COPY index.html ./ +COPY vite.config.js ./ +COPY tsconfig.json ./ + +# Expose the frontend port +EXPOSE ${FRONTEND_PORT:-5173} + +# Start the frontend using the client script +CMD ["npm", "run", "client", "--", "--host"] \ No newline at end of file