Initial commit
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
FROM node:22-bookworm-slim AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-bookworm-slim
|
||||
ENV NODE_ENV=production PORT=8787
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app/server ./server
|
||||
COPY --from=build /app/src/types.ts ./src/types.ts
|
||||
COPY --from=build /app/migrations ./migrations
|
||||
EXPOSE 8787
|
||||
CMD ["node", "--import", "tsx", "server/index.ts"]
|
||||
Reference in New Issue
Block a user