initial commit
This commit is contained in:
13
backend/Dockerfile
Normal file
13
backend/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# --- Build Stage ---
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install --production
|
||||
COPY . .
|
||||
|
||||
# --- Run Stage ---
|
||||
FROM node:20-alpine AS run
|
||||
WORKDIR /app
|
||||
COPY --from=build /app /app
|
||||
EXPOSE 4000
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user