This commit is contained in:
End 2026-03-16 17:30:08 -07:00
parent 2ac9de9c20
commit c584af1e2e
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -18,11 +18,12 @@ CMD ["bundle", "exec", "puma", "-p", "9292", "-e", "production"]
# =============================================================================
FROM node:22-alpine AS frontend
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN npm run build
RUN npm prune --omit=dev
RUN pnpm run build
RUN pnpm prune --prod
EXPOSE 3000
CMD ["node", "build"]

View file

@ -21,6 +21,6 @@ services:
- "3000"
environment:
ORIGIN: ${ORIGIN:-https://stickers.hackclub.com}
BACKEND_URL: ${BACKEND_URL:-https://stickers.hackclub.com}
BACKEND_URL: ${BACKEND_URL:-http://backend:9292}
depends_on:
- backend