feat: Add Gitea pipelines for frontend and backend
This commit is contained in:
15
legalconsenthub/.dockerignore
Normal file
15
legalconsenthub/.dockerignore
Normal file
@@ -0,0 +1,15 @@
|
||||
node_modules
|
||||
.nuxt
|
||||
.output
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
.api-client
|
||||
.api-client-middleware
|
||||
*.log
|
||||
.DS_Store
|
||||
coverage
|
||||
.vscode
|
||||
.idea
|
||||
dist
|
||||
|
||||
31
legalconsenthub/Dockerfile
Normal file
31
legalconsenthub/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM node:22.16.0-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm@10.13.1
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pnpm build
|
||||
|
||||
FROM node:22.16.0-alpine AS runner
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm@10.13.1
|
||||
|
||||
COPY --from=builder /app/.output /app/.output
|
||||
COPY --from=builder /app/package.json /app/package.json
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3000
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user