We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b3338 commit 10efc9eCopy full SHA for 10efc9e
3 files changed
client/.dockerignore
@@ -0,0 +1,2 @@
1
+node_modules/
2
+dist/
client/Dockerfile
@@ -0,0 +1,26 @@
+# Use an official node image as the base image
+FROM node:16-alpine
3
+
4
+# Set the working directory
5
+WORKDIR /app
6
7
+# Copy package.json and package-lock.json
8
+COPY package*.json ./
9
10
+# Install dependencies
11
+RUN npm install
12
13
+# Copy the rest of the application code
14
+COPY . .
15
16
+# Set environment variable
17
+ENV VITE_BACKEND_URL=https://devhub-server-original.onrender.com
18
19
+# Build the application
20
+RUN npm run build
21
22
+# Expose the port the app runs on
23
+EXPOSE 3000
24
25
+# Start the application
26
+CMD ["npm", "run", "serve"]
client/vercel.json
@@ -0,0 +1,5 @@
+{
+ "rewrites": [
+ {"source": "/:a*", "destination": "/"}
+ ]
+}
0 commit comments