feat: init proj
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:22-slim AS frontend
|
||||
WORKDIR /app/web
|
||||
COPY web/package.json ./
|
||||
RUN npm install
|
||||
COPY web/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-slim AS production
|
||||
WORKDIR /app
|
||||
|
||||
COPY server/package.json ./server/
|
||||
WORKDIR /app/server
|
||||
RUN npm install --omit=dev
|
||||
|
||||
COPY server/ ./
|
||||
COPY --from=frontend /app/web/dist /app/web/dist
|
||||
|
||||
EXPOSE 3456
|
||||
|
||||
CMD ["npx", "tsx", "src/index.ts"]
|
||||
Reference in New Issue
Block a user