feat: add dockerfiles, finish /login and start /profile

This commit is contained in:
2025-07-30 18:28:21 +02:00
parent a8172f7e66
commit 069af4cd09
9 changed files with 167 additions and 50 deletions
+23
View File
@@ -0,0 +1,23 @@
# https://dev.to/code42cate/how-to-dockerize-and-deploy-astro-6ll
FROM node:alpine AS base
WORKDIR /app
COPY package.json package-lock.json ./
FROM base AS deps
RUN npm install
FROM deps AS build
COPY . .
RUN npm run build
FROM base AS runtime
COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD node ./dist/server/entry.mjs