New Branch
This commit is contained in:
19
backend-server/Dockerfile
Normal file
19
backend-server/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
RUN npm i --production
|
||||
|
||||
RUN npm install --save-dev @types/cors
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm","start"]
|
||||
Reference in New Issue
Block a user