Add Dockerfile for backend and frontend
This commit is contained in:
13
Dockerfile.backend
Normal file
13
Dockerfile.backend
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app/backend
|
||||
|
||||
COPY backend/package*.json ./
|
||||
|
||||
RUN npm install --production
|
||||
|
||||
COPY backend/ .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user