Skip to content

Commit a9c4b94

Browse files
Merge pull request #13 from T-I-P/pranjal_feature/docker
Pranjal feature/docker
2 parents 5602fc0 + 02490fd commit a9c4b94

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/.git
2+
**/node_modules
3+
**/fastAPI
4+
**/src/Deployments

Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:20 AS build
2+
3+
# Set working directory for the backend
4+
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

Comments
 (0)