We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5602fc0 + 02490fd commit a9c4b94Copy full SHA for a9c4b94
.dockerignore
@@ -0,0 +1,4 @@
1
+**/.git
2
+**/node_modules
3
+**/fastAPI
4
+**/src/Deployments
Dockerfile
@@ -0,0 +1,19 @@
+FROM node:20 AS build
+
+# Set working directory for the backend
+WORKDIR /safemaps_combined/back
5
6
+# Copy package.json and package-lock.json for frontend
7
+COPY ./package.json ./package-lock.json ./
8
9
+# Copy backend source code
10
+COPY . .
11
12
+# Install backend dependencies
13
+RUN npm install
14
15
+# Expose port for backend (if needed)
16
+EXPOSE 3000
17
18
+# Command to run backend server (adjust as per your backend setup)
19
+CMD ["node", "fetchCrimeData.js"]
0 commit comments