feat: working docker file server

This commit is contained in:
karishmas6
2024-11-01 16:04:22 +05:30
parent 1ff0fabe78
commit fc4b6b792a

20
server/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:18-alpine
WORKDIR /app
# Copy all source files first
COPY package*.json ./
COPY maxun-core ./maxun-core
COPY src ./src
COPY server ./server
COPY tsconfig.json ./
COPY server/tsconfig.json ./server/
# Install dependencies
RUN npm install
# Expose the backend port
EXPOSE 8080
# Start the backend using the server script
CMD ["npm", "run", "server"]