Astro+Directus(Visual-Editing)+Snipcart Test-Stack
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM node:22-slim AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install --no-audit --no-fund
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
FROM node:22-slim
|
||||
WORKDIR /app
|
||||
ENV HOST=0.0.0.0 PORT=4321 NODE_ENV=production
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app/package.json ./
|
||||
EXPOSE 4321
|
||||
HEALTHCHECK CMD node -e "fetch('http://localhost:4321/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
CMD ["node","./dist/server/entry.mjs"]
|
||||
Reference in New Issue
Block a user