feat: Add base files
This commit is contained in:
12
frontend/Dockerfile
Normal file
12
frontend/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM 23-slim AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM node:23-slim
|
||||
WORKDIR /app
|
||||
RUN npm install -g serve
|
||||
COPY --from=builder /app/dist ./dist
|
||||
CMD ["serve", "-s", "dist"]
|
||||
EXPOSE 3000
|
||||
Reference in New Issue
Block a user