Private
Public Access
feat: añadido docker compose y los dockerfile para las builds
This commit is contained in:
1 parent
b9b04db154
commit
2e18319893
10 files changed
+300
-67
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# ---
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build ./build
|
||||
COPY --from=builder /app/package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", "build"]
|
||||
Reference in new issue
Block a user